Mercurial > dropbear
comparison svr-session.c @ 299:740e782679be ucc-axis-hack
Various changes to compile+kind of run on UCC's axis board.
Note that fprintf(stdin -> printf( accounts for many of the changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 25 Mar 2006 12:57:09 +0000 |
parents | 364a75cfebab |
children | 973fccb59ea4 |
comparison
equal
deleted
inserted
replaced
266:e37b160c414c | 299:740e782679be |
---|---|
184 timesec = time(NULL); | 184 timesec = time(NULL); |
185 if (strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", | 185 if (strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S", |
186 localtime(×ec)) == 0) { | 186 localtime(×ec)) == 0) { |
187 datestr[0] = '?'; datestr[1] = '\0'; | 187 datestr[0] = '?'; datestr[1] = '\0'; |
188 } | 188 } |
189 fprintf(stderr, "[%d] %s %s\n", getpid(), datestr, printbuf); | 189 printf( "[%d] %s %s\n", getpid(), datestr, printbuf); |
190 } | 190 } |
191 } | 191 } |
192 | 192 |
193 /* called when the remote side closes the connection */ | 193 /* called when the remote side closes the connection */ |
194 static void svr_remoteclosed() { | 194 static void svr_remoteclosed() { |