FreeBSD Bugzilla – Attachment 46697 Details for
Bug 71618
[patch] timed(8): cleanup of the usr.sbin/timed code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
readmsg.c.diff
readmsg.c.diff (text/x-patch), 1.12 KB, created by
Rebecca Cran
on 2008-09-04 23:40:53 UTC
(
hide
)
Description:
readmsg.c.diff
Filename:
MIME Type:
Creator:
Rebecca Cran
Created:
2008-09-04 23:40:53 UTC
Size:
1.12 KB
patch
obsolete
>--- readmsg.c.orig 2008-09-04 23:21:26.000000000 +0100 >+++ readmsg.c 2008-09-04 23:39:00.000000000 +0100 >@@ -39,6 +39,7 @@ > "$FreeBSD: src/usr.sbin/timed/timed/readmsg.c,v 1.9 2001/11/20 07:13:40 jhb Exp $"; > #endif /* not lint */ > >+#include <stdint.h> > #include "globals.h" > > extern char *tsptype[]; >@@ -186,8 +187,8 @@ > rwait.tv_usec = 1000000/CLK_TCK; > > if (trace) { >- fprintf(fd, "readmsg: wait %ld.%6ld at %s\n", >- rwait.tv_sec, rwait.tv_usec, date()); >+ fprintf(fd, "readmsg: wait %lld.%6ld at %s\n", >+ (long long int)rwait.tv_sec, rwait.tv_usec, date()); > /* Notice a full disk, as we flush trace info. > * It is better to flush periodically than at > * every line because the tracing consists of bursts >@@ -491,12 +492,12 @@ > break; > > case TSP_ADJTIME: >- fprintf(fd, "%s %d %-6u (%ld,%ld) %-15s %s\n", >+ fprintf(fd, "%s %d %-6u (%jd,%jd) %-15s %s\n", > tsptype[msg->tsp_type], > msg->tsp_vers, > msg->tsp_seq, >- msg->tsp_time.tv_sec, >- msg->tsp_time.tv_usec, >+ (intmax_t)msg->tsp_time.tv_sec, >+ (intmax_t)msg->tsp_time.tv_usec, > inet_ntoa(addr->sin_addr), > msg->tsp_name); > break;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 71618
:
46692
|
46693
|
46694
|
46695
|
46696
| 46697 |
46698
|
46699