summaryrefslogtreecommitdiff
path: root/accel-pppd/cli
diff options
context:
space:
mode:
authorMarek Michalkiewicz <marekm@amelek.gda.pl>2016-05-28 23:23:16 +0200
committerDmitry Kozlov <xeb@mail.ru>2016-05-31 12:38:21 +0300
commit74d9a93067733e61d27038b905bf0f8325a102b5 (patch)
tree67f3cc4b6b85d3aab463b74623f2fc0e0bc2805c /accel-pppd/cli
parent492e0d46037630e0654210d8adea6b83d61dab58 (diff)
downloadaccel-ppp-xebd-74d9a93067733e61d27038b905bf0f8325a102b5.tar.gz
accel-ppp-xebd-74d9a93067733e61d27038b905bf0f8325a102b5.zip
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
Diffstat (limited to 'accel-pppd/cli')
-rw-r--r--accel-pppd/cli/std_cmd.c2
1 files changed, 1 insertions, 1 deletions
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;