Mercurial > dropbear
comparison svr-session.c @ 433:c216212001fc
Fix for -pedantic -ansi compilation, change // to /**/, plus some signedness
and trailing-comma-in-array issues
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 16 Feb 2007 14:42:08 +0000 |
parents | a588558bfc94 |
children | 7e43f5e473b9 |
comparison
equal
deleted
inserted
replaced
432:517e76bdfb2d | 433:c216212001fc |
---|---|
186 local_tm = localtime(×ec); | 186 local_tm = localtime(×ec); |
187 if (local_tm == NULL | 187 if (local_tm == NULL |
188 || strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", | 188 || strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", |
189 localtime(×ec)) == 0) | 189 localtime(×ec)) == 0) |
190 { | 190 { |
191 // upon failure, just print the epoch-seconds time. | 191 /* upon failure, just print the epoch-seconds time. */ |
192 snprintf(datestr, sizeof(datestr), "%d", timesec); | 192 snprintf(datestr, sizeof(datestr), "%d", timesec); |
193 } | 193 } |
194 fprintf(stderr, "[%d] %s %s\n", getpid(), datestr, printbuf); | 194 fprintf(stderr, "[%d] %s %s\n", getpid(), datestr, printbuf); |
195 } | 195 } |
196 } | 196 } |