@@ -113,8 +113,8 @@ struct arcf_config
113
113
bool conf_finalreceiver ; /* act as final receiver */
114
114
bool conf_overridecv ; /* allow A-R to override CV */
115
115
bool conf_authresip ; /* include remote IP in A-R */
116
- u_int conf_refcnt ; /* reference count */
117
- u_int conf_mode ; /* mode flags */
116
+ unsigned int conf_refcnt ; /* reference count */
117
+ unsigned int conf_mode ; /* mode flags */
118
118
arc_canon_t conf_canonhdr ; /* canonicalization for header */
119
119
arc_canon_t conf_canonbody ; /* canonicalization for body */
120
120
arc_alg_t conf_signalg ; /* signing algorithm */
@@ -130,7 +130,7 @@ struct arcf_config
130
130
const char * * conf_signhdrs ; /* headers to sign (array) */
131
131
char * conf_oversignhdrs_raw ; /* fields to over-sign (raw) */
132
132
const char * * conf_oversignhdrs ; /* fields to over-sign (array) */
133
- u_char * conf_keydata ; /* binary key data */
133
+ unsigned char * conf_keydata ; /* binary key data */
134
134
size_t conf_keylen ; /* key length */
135
135
int conf_maxhdrsz ; /* max. header size */
136
136
struct config * conf_data ; /* configuration data */
@@ -149,7 +149,7 @@ struct msgctx
149
149
{
150
150
bool mctx_peer ; /* peer source? */
151
151
ssize_t mctx_hdrbytes ; /* count of header bytes */
152
- u_char * mctx_jobid ; /* job ID */
152
+ unsigned char * mctx_jobid ; /* job ID */
153
153
struct Header * mctx_hqhead ; /* header queue head */
154
154
struct Header * mctx_hqtail ; /* header queue tail */
155
155
ARC_MESSAGE * mctx_arcmsg ; /* libopenarc message */
@@ -231,7 +231,7 @@ sfsistat mlfi_close(SMFICTX *);
231
231
sfsistat mlfi_connect (SMFICTX * , char * , _SOCK_ADDR * );
232
232
sfsistat mlfi_envfrom (SMFICTX * , char * * );
233
233
sfsistat mlfi_eoh (SMFICTX * );
234
- sfsistat mlfi_body (SMFICTX * , u_char * , size_t );
234
+ sfsistat mlfi_body (SMFICTX * , unsigned char * , size_t );
235
235
sfsistat mlfi_eom (SMFICTX * );
236
236
sfsistat mlfi_header (SMFICTX * , char * , char * );
237
237
sfsistat mlfi_negotiate (SMFICTX * ,
@@ -1669,13 +1669,13 @@ arcf_config_load(struct config *data,
1669
1669
/* load the secret key, if one was specified */
1670
1670
if (conf -> conf_keyfile != NULL )
1671
1671
{
1672
- int status ;
1673
- int fd ;
1674
- ssize_t rlen ;
1675
- ino_t ino = -1 ;
1676
- uid_t asuser = (uid_t ) - 1 ;
1677
- u_char * s33krit ;
1678
- struct stat s ;
1672
+ int status ;
1673
+ int fd ;
1674
+ ssize_t rlen ;
1675
+ ino_t ino = -1 ;
1676
+ uid_t asuser = (uid_t ) - 1 ;
1677
+ unsigned char * s33krit ;
1678
+ struct stat s ;
1679
1679
1680
1680
fd = open (conf -> conf_keyfile , O_RDONLY , 0 );
1681
1681
if (fd < 0 )
@@ -1815,11 +1815,11 @@ arcf_config_load(struct config *data,
1815
1815
if (conf -> conf_dolog )
1816
1816
{
1817
1817
syslog (LOG_ERR , "%s: read() wrong size (%lu)" ,
1818
- conf -> conf_keyfile , (u_long ) rlen );
1818
+ conf -> conf_keyfile , (unsigned long ) rlen );
1819
1819
}
1820
1820
1821
1821
snprintf (err , errlen , "%s: read() wrong size (%lu)" ,
1822
- conf -> conf_keyfile , (u_long ) rlen );
1822
+ conf -> conf_keyfile , (unsigned long ) rlen );
1823
1823
close (fd );
1824
1824
ARC_FREE (s33krit );
1825
1825
return -1 ;
@@ -1861,9 +1861,9 @@ arcf_config_load(struct config *data,
1861
1861
static bool
1862
1862
arcf_config_setlib (struct arcf_config * conf , char * * err )
1863
1863
{
1864
- ARC_STAT status ;
1865
- u_int opts ;
1866
- ARC_LIB * lib ;
1864
+ ARC_STAT status ;
1865
+ unsigned int opts ;
1866
+ ARC_LIB * lib ;
1867
1867
assert (conf != NULL );
1868
1868
1869
1869
lib = conf -> conf_libopenarc ;
@@ -2024,7 +2024,7 @@ arcf_config_reload(void)
2024
2024
else
2025
2025
{
2026
2026
bool err = false;
2027
- u_int line ;
2027
+ unsigned int line ;
2028
2028
struct config * cfg ;
2029
2029
char * missing ;
2030
2030
char * errstr = NULL ;
@@ -2430,7 +2430,7 @@ arcf_checkip(struct conflist *list, struct sockaddr *ip)
2430
2430
dst_len = sizeof ipbuf - 1 ;
2431
2431
2432
2432
inet_ntop (AF_INET6 , & addr , dst , dst_len );
2433
- arcf_lowercase ((u_char * ) dst );
2433
+ arcf_lowercase ((unsigned char * ) dst );
2434
2434
iplen = strlen (dst );
2435
2435
2436
2436
LIST_FOREACH (node , list , entries )
@@ -2473,7 +2473,7 @@ arcf_checkip(struct conflist *list, struct sockaddr *ip)
2473
2473
dst_len = sizeof ipbuf - 1 ;
2474
2474
2475
2475
inet_ntop (AF_INET6 , & addr , dst , dst_len );
2476
- arcf_lowercase ((u_char * ) dst );
2476
+ arcf_lowercase ((unsigned char * ) dst );
2477
2477
iplen = strlen (dst );
2478
2478
2479
2479
sz = strlcat (ipbuf , "/" , sizeof ipbuf );
@@ -2817,7 +2817,7 @@ mlfi_connect(SMFICTX *ctx, char *host, _SOCK_ADDR *ip)
2817
2817
arcf_setpriv (ctx , cc );
2818
2818
}
2819
2819
2820
- arcf_lowercase ((u_char * ) host );
2820
+ arcf_lowercase ((unsigned char * ) host );
2821
2821
2822
2822
if (host != NULL )
2823
2823
{
@@ -3164,15 +3164,15 @@ mlfi_header(SMFICTX *ctx, char *headerf, char *headerv)
3164
3164
sfsistat
3165
3165
mlfi_eoh (SMFICTX * ctx )
3166
3166
{
3167
- char last ;
3168
- u_int mode ;
3169
- ARC_STAT status ;
3170
- connctx cc ;
3171
- msgctx afc ;
3172
- char * p ;
3173
- const u_char * err = NULL ;
3174
- struct arcf_config * conf ;
3175
- Header hdr ;
3167
+ char last ;
3168
+ unsigned int mode ;
3169
+ ARC_STAT status ;
3170
+ connctx cc ;
3171
+ msgctx afc ;
3172
+ char * p ;
3173
+ const unsigned char * err = NULL ;
3174
+ struct arcf_config * conf ;
3175
+ Header hdr ;
3176
3176
3177
3177
assert (ctx != NULL );
3178
3178
@@ -3186,10 +3186,10 @@ mlfi_eoh(SMFICTX *ctx)
3186
3186
** Determine the message ID for logging.
3187
3187
*/
3188
3188
3189
- afc -> mctx_jobid = (u_char * ) arcf_getsymval (ctx , "i" );
3189
+ afc -> mctx_jobid = (unsigned char * ) arcf_getsymval (ctx , "i" );
3190
3190
if (afc -> mctx_jobid == NULL || afc -> mctx_jobid [0 ] == '\0' )
3191
3191
{
3192
- afc -> mctx_jobid = (u_char * ) JOBIDUNKNOWN ;
3192
+ afc -> mctx_jobid = (unsigned char * ) JOBIDUNKNOWN ;
3193
3193
}
3194
3194
3195
3195
/* if requested, verify RFC5322-required headers (RFC5322 3.6) */
@@ -3496,7 +3496,7 @@ mlfi_eoh(SMFICTX *ctx)
3496
3496
*/
3497
3497
3498
3498
sfsistat
3499
- mlfi_body (SMFICTX * ctx , u_char * bodyp , size_t bodylen )
3499
+ mlfi_body (SMFICTX * ctx , unsigned char * bodyp , size_t bodylen )
3500
3500
{
3501
3501
int status ;
3502
3502
msgctx afc ;
@@ -3655,15 +3655,15 @@ mlfi_eom(SMFICTX *ctx)
3655
3655
3656
3656
if (strcmp ((char * ) afc -> mctx_jobid , JOBIDUNKNOWN ) == 0 )
3657
3657
{
3658
- afc -> mctx_jobid = (u_char * ) arcf_getsymval (ctx , "i" );
3658
+ afc -> mctx_jobid = (unsigned char * ) arcf_getsymval (ctx , "i" );
3659
3659
if (afc -> mctx_jobid == NULL || afc -> mctx_jobid [0 ] == '\0' )
3660
3660
{
3661
3661
if (no_i_whine && conf -> conf_dolog )
3662
3662
{
3663
3663
syslog (LOG_WARNING , "WARNING: symbol 'i' not available" );
3664
3664
no_i_whine = false;
3665
3665
}
3666
- afc -> mctx_jobid = (u_char * ) JOBIDUNKNOWN ;
3666
+ afc -> mctx_jobid = (unsigned char * ) JOBIDUNKNOWN ;
3667
3667
}
3668
3668
}
3669
3669
@@ -3924,7 +3924,7 @@ mlfi_eom(SMFICTX *ctx)
3924
3924
snprintf (xfhdr , ARC_MAXHEADER , "%s%s v%s %s %s" ,
3925
3925
cc -> cctx_noleadspc ? " " : "" , ARCF_PRODUCT , VERSION , hostname ,
3926
3926
afc -> mctx_jobid != NULL ? afc -> mctx_jobid
3927
- : (u_char * ) JOBIDUNKNOWN );
3927
+ : (unsigned char * ) JOBIDUNKNOWN );
3928
3928
3929
3929
if (arcf_insheader (ctx , 0 , SWHEADERNAME , xfhdr ) != MI_SUCCESS )
3930
3930
{
@@ -4087,9 +4087,9 @@ main(int argc, char **argv)
4087
4087
int filemask = -1 ;
4088
4088
int mdebug = 0 ;
4089
4089
#ifdef HAVE_SMFI_VERSION
4090
- u_int mvmajor ;
4091
- u_int mvminor ;
4092
- u_int mvrelease ;
4090
+ unsigned int mvmajor ;
4091
+ unsigned int mvminor ;
4092
+ unsigned int mvrelease ;
4093
4093
#endif /* HAVE_SMFI_VERSION */
4094
4094
time_t now ;
4095
4095
gid_t gid = (gid_t ) - 1 ;
@@ -4267,10 +4267,10 @@ main(int argc, char **argv)
4267
4267
4268
4268
if (conffile != NULL )
4269
4269
{
4270
- u_int line = 0 ;
4271
- char * missing ;
4272
- char * deprecated = NULL ;
4273
- char path [MAXPATHLEN + 1 ];
4270
+ unsigned int line = 0 ;
4271
+ char * missing ;
4272
+ char * deprecated = NULL ;
4273
+ char path [MAXPATHLEN + 1 ];
4274
4274
4275
4275
cfg = config_load (conffile , arcf_config , & line , path , sizeof path ,
4276
4276
& deprecated );
0 commit comments