This commit is contained in:
Alexander Langer 1997-12-22 23:00:35 +00:00
parent f1129700ee
commit c62b41d9d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31940
2 changed files with 8 additions and 5 deletions

View File

@ -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);
}
}

View File

@ -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
*