diff options
-rw-r--r-- | contrib/opie/ftpcmd.y | 4 | ||||
-rw-r--r-- | usr.sbin/xntpd/parse/clk_trimtsip.c | 9 |
2 files changed, 8 insertions, 5 deletions
diff --git a/contrib/opie/ftpcmd.y b/contrib/opie/ftpcmd.y index ed1e710..494dc81 100644 --- a/contrib/opie/ftpcmd.y +++ b/contrib/opie/ftpcmd.y @@ -565,8 +565,8 @@ cmd: USER SP username CRLF struct tm *gmtime(); t = gmtime(&stbuf.st_mtime); reply(213, - "19%02d%02d%02d%02d%02d%02d", - t->tm_year, t->tm_mon+1, t->tm_mday, + "%d%02d%02d%02d%02d%02d", + t->tm_year+1900, t->tm_mon+1, t->tm_mday, t->tm_hour, t->tm_min, t->tm_sec); } } diff --git a/usr.sbin/xntpd/parse/clk_trimtsip.c b/usr.sbin/xntpd/parse/clk_trimtsip.c index 422fac1..8b43587 100644 --- a/usr.sbin/xntpd/parse/clk_trimtsip.c +++ b/usr.sbin/xntpd/parse/clk_trimtsip.c @@ -1,6 +1,6 @@ #if defined(REFCLOCK) && (defined(PARSE) || defined(PARSEPPS)) && defined(CLOCK_TRIMTSIP) /* - * $Header: /home/ncvs/src/usr.sbin/xntpd/parse/clk_trimtsip.c,v 1.1.1.1 1994/09/29 23:01:31 wollman Exp $ + * $Header: /home/ncvs/src/usr.sbin/xntpd/parse/clk_trimtsip.c,v 1.2 1995/05/30 03:54:13 rgrimes Exp $ * * Trimble TSIP support - CURRENTLY VERY MUCH UNDER CONSTRUCTION */ @@ -243,8 +243,8 @@ cvt_trimtsip(buffer, size, format, clock, t) break; case 0x45: - printf("sv6+ software: %d.%d (19%d/%d/%d)\n", - mb(0)&0xff, mb(1)&0xff, mb(4)&0xff, mb(2)&0xff, mb(3)&0xff); + printf("sv6+ software: %d.%d (%d/%d/%d)\n", + mb(0)&0xff, mb(1)&0xff, (mb(4)&0xff)+1900, mb(2)&0xff, mb(3)&0xff); break; case 0x46: @@ -468,6 +468,9 @@ getint(bp) * History: * * $Log: clk_trimtsip.c,v $ + * Revision 1.2 1995/05/30 03:54:13 rgrimes + * Remove trailing whitespace. + * * Revision 1.1.1.1 1994/09/29 23:01:31 wollman * xntp 3.4e from Dave Mills @ UDel * |