mirror of https://github.com/wb2osz/direwolf.git
gcc 9 warnings.
This commit is contained in:
parent
7b5fc163dc
commit
d0cad72955
|
@ -422,7 +422,7 @@ void aprs_tt_sequence (int chan, char *msg)
|
|||
* Anything from script, above, will override other predefined responses.
|
||||
*/
|
||||
|
||||
char audible_response[1000];
|
||||
char audible_response[sizeof(script_response) + 16];
|
||||
|
||||
snprintf (audible_response, sizeof(audible_response),
|
||||
"APRSTT>%s:%s",
|
||||
|
|
|
@ -2025,7 +2025,7 @@ int ax25_pack (packet_t this_p, unsigned char result[AX25_MAX_PACKET_LEN])
|
|||
*
|
||||
* Outputs: desc - Text description such as "I frame" or
|
||||
* "U frame SABME".
|
||||
* Supply 40 bytes to be safe.
|
||||
* Supply 56 bytes to be safe.
|
||||
*
|
||||
* cr - Command or response?
|
||||
*
|
||||
|
@ -2041,7 +2041,7 @@ int ax25_pack (packet_t this_p, unsigned char result[AX25_MAX_PACKET_LEN])
|
|||
|
||||
// TODO: need someway to ensure caller allocated enough space.
|
||||
// Should pass in as parameter.
|
||||
#define DESC_SIZ 40
|
||||
#define DESC_SIZ 56
|
||||
|
||||
|
||||
ax25_frame_type_t ax25_frame_type (packet_t this_p, cmdres_t *cr, char *desc, int *pf, int *nr, int *ns)
|
||||
|
|
|
@ -435,7 +435,7 @@ extern unsigned short ax25_m_m_crc (packet_t pp);
|
|||
|
||||
extern void ax25_safe_print (char *, int, int ascii_only);
|
||||
|
||||
#define AX25_ALEVEL_TO_TEXT_SIZE 32 // overkill but safe.
|
||||
#define AX25_ALEVEL_TO_TEXT_SIZE 40 // overkill but safe.
|
||||
extern int ax25_alevel_to_text (alevel_t alevel, char text[AX25_ALEVEL_TO_TEXT_SIZE]);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue