@@ -1896,7 +1896,7 @@ dhcpcd_pidfile_timeout(void *arg)
18961896 if (pid == -1 )
18971897 eloop_exit (ctx -> eloop , EXIT_SUCCESS );
18981898 else if (++ ctx -> duid_len >= 100 ) { /* overload duid_len */
1899- logerrx ("pid %d failed to exit" , pid );
1899+ logerrx ("pid %d failed to exit" , ( int ) pid );
19001900 eloop_exit (ctx -> eloop , EXIT_FAILURE );
19011901 } else
19021902 eloop_timeout_add_msec (ctx -> eloop , 100 ,
@@ -2247,7 +2247,7 @@ main(int argc, char **argv, char **envp)
22472247 if (sig != 0 ) {
22482248 pid = pidfile_read (ctx .pidfile );
22492249 if (pid != 0 && pid != -1 )
2250- loginfox ("sending signal %s to pid %d" , siga , pid );
2250+ loginfox ("sending signal %s to pid %d" , siga , ( int ) pid );
22512251 if (pid == 0 || pid == -1 || kill (pid , sig ) != 0 ) {
22522252 if (pid != 0 && pid != -1 && errno != ESRCH ) {
22532253 logerr ("kill" );
@@ -2260,7 +2260,7 @@ main(int argc, char **argv, char **envp)
22602260 if (sig == SIGHUP || sig == SIGUSR1 )
22612261 goto exit_success ;
22622262 /* Spin until it exits */
2263- loginfox ("waiting for pid %d to exit" , pid );
2263+ loginfox ("waiting for pid %d to exit" , ( int ) pid );
22642264 dhcpcd_pidfile_timeout (& ctx );
22652265 goto run_loop ;
22662266 }
@@ -2386,7 +2386,7 @@ main(int argc, char **argv, char **envp)
23862386 else
23872387 logerrx (PACKAGE
23882388 " already running on pid %d (%s)" ,
2389- pid , ctx .pidfile );
2389+ ( int ) pid , ctx .pidfile );
23902390 goto exit_failure ;
23912391 }
23922392 }
@@ -2467,12 +2467,12 @@ main(int argc, char **argv, char **envp)
24672467
24682468 /* We have now forked, setsid, forked once more.
24692469 * From this point on, we are the controlling daemon. */
2470- logdebugx ("spawned manager process on PID %d" , getpid ());
2470+ logdebugx ("spawned manager process on PID %d" , ( int ) getpid ());
24712471
24722472start_manager :
24732473 ctx .options |= DHCPCD_STARTED ;
24742474 if ((pid = pidfile_lock (ctx .pidfile )) != 0 ) {
2475- logerr ("%s: pidfile_lock %d" , __func__ , pid );
2475+ logerr ("%s: pidfile_lock %d" , __func__ , ( int ) pid );
24762476#ifdef PRIVSEP
24772477 /* privsep has not started ... */
24782478 ctx .options &= ~DHCPCD_PRIVSEP ;
0 commit comments