From 74d9a93067733e61d27038b905bf0f8325a102b5 Mon Sep 17 00:00:00 2001 From: Marek Michalkiewicz Date: Sat, 28 May 2016 23:23:16 +0200 Subject: accel-ppp Debian x32 fix minor -Wformat warnings Hello, small patch to avoid gcc -Wformat warnings on Debian x32 where time_t is "long long" (64-bit signed, to be 2038 safe), not "unsigned long" (32-bit unsigned) corresponding to "%lu" format strings. Regards, Marek --- accel-pppd/cli/std_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index 62327f9..500102b 100644 --- a/accel-pppd/cli/std_cmd.c +++ b/accel-pppd/cli/std_cmd.c @@ -20,7 +20,7 @@ void core_restart(int); static int show_stat_exec(const char *cmd, char * const *fields, int fields_cnt, void *client) { struct timespec ts; - time_t dt; + unsigned long dt; int day,hour; char statm_fname[128]; FILE *f; -- cgit v1.2.3