comparison svr-session.c @ 1215:d058e15ea213

A few minor style fixes
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Dec 2015 22:09:55 +0800
parents 64a50eac1030
children 888e3d17e962
comparison
equal deleted inserted replaced
1214:61d3f56808a4 1215:d058e15ea213
213 * syslog is used, so it is included in error reports */ 213 * syslog is used, so it is included in error reports */
214 #ifdef DEBUG_TRACE 214 #ifdef DEBUG_TRACE
215 havetrace = debug_trace; 215 havetrace = debug_trace;
216 #endif 216 #endif
217 217
218 if (!opts.usingsyslog || havetrace) 218 if (!opts.usingsyslog || havetrace) {
219 {
220 struct tm * local_tm = NULL; 219 struct tm * local_tm = NULL;
221 timesec = time(NULL); 220 timesec = time(NULL);
222 local_tm = localtime(&timesec); 221 local_tm = localtime(&timesec);
223 if (local_tm == NULL 222 if (local_tm == NULL
224 || strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", 223 || strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S",