comparison svr-session.c @ 316:dc6173e09ff7 ucc-axis-hack

smaller yet again
author Matt Johnston <matt@ucc.asn.au>
date Tue, 28 Mar 2006 16:04:11 +0000
parents 973fccb59ea4
children 063cf9e8efea
comparison
equal deleted inserted replaced
314:827f87dfbc22 316:dc6173e09ff7
180 #endif 180 #endif
181 181
182 if (!svr_opts.usingsyslog || havetrace) 182 if (!svr_opts.usingsyslog || havetrace)
183 { 183 {
184 timesec = time(NULL); 184 timesec = time(NULL);
185 #if 0
185 if (strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", 186 if (strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S",
186 localtime(&timesec)) == 0) { 187 localtime(&timesec)) == 0) {
187 datestr[0] = '?'; datestr[1] = '\0'; 188 datestr[0] = '?'; datestr[1] = '\0';
188 } 189 }
189 printf( "[%d] %s %s\n", getpid(), datestr, printbuf); 190 #endif
191 printf( "[%d] %d %s\n", getpid(), timesec, printbuf);
190 } 192 }
191 } 193 }
192 194
193 /* called when the remote side closes the connection */ 195 /* called when the remote side closes the connection */
194 static void svr_remoteclosed() { 196 static void svr_remoteclosed() {