4 Commits
Author SHA1 Message Date
zx eead012999 fix for GCC15
Altlinux build / build-alt (push) Successful in 3m50s
Archlinux build / build-arch (push) Successful in 4m39s
Archlinux build / make-test (push) Successful in 2m8s
Debian build / build-ubuntu (push) Successful in 4m6s
2026-03-18 15:54:07 +03:00
zx 981a9aba37 fixed for GCC 15 strict function prototyping on ArchLinux 2026-03-18 15:47:47 +03:00
zx 901072385e Fix build
Altlinux build / build-alt (push) Successful in 2m40s
Archlinux build / build-arch (push) Successful in 2m57s
Archlinux build / make-test (push) Successful in 1m0s
Debian build / build-ubuntu (push) Successful in 3m55s
2025-05-01 18:29:59 +03:00
zx 926124dffc Fix uint32 types unknown
Altlinux build / build-alt (push) Successful in 2m41s
Archlinux build / build-arch (push) Successful in 2m57s
Archlinux build / make-test (push) Successful in 1m0s
Debian build / build-ubuntu (push) Successful in 3m47s
2025-05-01 18:29:11 +03:00
4 changed files with 20 additions and 20 deletions
View File
+7 -7
View File
@@ -286,9 +286,9 @@ static int sm_tx_waitseq(s_tx_emsidat *d)
static s_states st_tx_emsidat[] = static s_states st_tx_emsidat[] =
{ {
{ "sm_tx_init", sm_tx_init }, { "sm_tx_init", (int (*)(void *))sm_tx_init },
{ "sm_tx_senddat", sm_tx_senddat }, { "sm_tx_senddat", (int (*)(void *))sm_tx_senddat },
{ "sm_tx_waitseq", sm_tx_waitseq } { "sm_tx_waitseq", (int (*)(void *))sm_tx_waitseq }
}; };
int emsi_send_emsidat(s_emsi *local_emsi) int emsi_send_emsidat(s_emsi *local_emsi)
@@ -570,10 +570,10 @@ static int sm_rx_getdat(s_rx_emsidat *d)
static s_states st_rx_emsidat[] = static s_states st_rx_emsidat[] =
{ {
{ "sm_rx_init", sm_rx_init }, { "sm_rx_init", (int (*)(void *))sm_rx_init },
{ "sm_rx_sendnak", sm_rx_sendnak }, { "sm_rx_sendnak", (int (*)(void *))sm_rx_sendnak },
{ "sm_rx_waitseq", sm_rx_waitseq }, { "sm_rx_waitseq", (int (*)(void *))sm_rx_waitseq },
{ "sm_rx_getdat", sm_rx_getdat } { "sm_rx_getdat", (int (*)(void *))sm_rx_getdat }
}; };
int emsi_recv_emsidat(s_emsi *remote_emsi) int emsi_recv_emsidat(s_emsi *remote_emsi)
+12 -12
View File
@@ -253,10 +253,10 @@ int checkmasks(const char *masks, const char *str)
*/ */
char *buffer_putlong(char *buffer, long val) char *buffer_putlong(char *buffer, long val)
{ {
buffer[0] = ( ((uint_least32_t) val) ) & 0xff; buffer[0] = ( ((unsigned long) val) ) & 0xff;
buffer[1] = ( ((uint_least32_t) val) >> 8 ) & 0xff; buffer[1] = ( ((unsigned long) val) >> 8 ) & 0xff;
buffer[2] = ( ((uint_least32_t) val) >> 16 ) & 0xff; buffer[2] = ( ((unsigned long) val) >> 16 ) & 0xff;
buffer[3] = ( ((uint_least32_t) val) >> 24 ) & 0xff; buffer[3] = ( ((unsigned long) val) >> 24 ) & 0xff;
return buffer; return buffer;
} }
@@ -273,8 +273,8 @@ char *buffer_putlong(char *buffer, long val)
*/ */
char *buffer_putint(char *buffer, int val) char *buffer_putint(char *buffer, int val)
{ {
buffer[0] = ( ((uint_least16_t) val) ) & 0xff; buffer[0] = ( ((unsigned int) val) ) & 0xff;
buffer[1] = ( ((uint_least16_t) val) >> 8 ) & 0xff; buffer[1] = ( ((unsigned int) val) >> 8 ) & 0xff;
return buffer; return buffer;
} }
@@ -290,10 +290,10 @@ char *buffer_putint(char *buffer, int val)
*/ */
long buffer_getlong(const char *buffer) long buffer_getlong(const char *buffer)
{ {
return (long)( (uint_least32_t) ((unsigned char) buffer[0]) ) return (long)( (unsigned long) ((unsigned char) buffer[0]) )
| ( (uint_least32_t) ((unsigned char) buffer[1]) << 8 ) | ( (unsigned long) ((unsigned char) buffer[1]) << 8 )
| ( (uint_least32_t) ((unsigned char) buffer[2]) << 16 ) | ( (unsigned long) ((unsigned char) buffer[2]) << 16 )
| ( (uint_least32_t) ((unsigned char) buffer[3]) << 24 ); | ( (unsigned long) ((unsigned char) buffer[3]) << 24 );
} }
/***************************************************************************** /*****************************************************************************
@@ -307,8 +307,8 @@ long buffer_getlong(const char *buffer)
*/ */
int buffer_getint(const char *buffer) int buffer_getint(const char *buffer)
{ {
return (int)( (uint_least16_t) ((unsigned char) buffer[0]) ) return (int)( (unsigned int) ((unsigned char) buffer[0]) )
| ( (uint_least16_t) ((unsigned char) buffer[1]) << 8 ); | ( (unsigned int) ((unsigned char) buffer[1]) << 8 );
} }
void swap_long(char *buffer){ void swap_long(char *buffer){
+1 -1
View File
@@ -72,7 +72,7 @@
struct states struct states
{ {
const char *st_name; const char *st_name;
int (*proc)(); int (*proc)(void *);
}; };
typedef struct states s_states; typedef struct states s_states;