Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/dist/ntp/ntpdc Pullup 1.3 [itojun]:
details: https://anonhg.NetBSD.org/src/rev/6ff122fa1bc3
branches: netbsd-1-5
changeset: 489836:6ff122fa1bc3
user: tv <tv%NetBSD.org@localhost>
date: Tue Oct 17 22:59:04 2000 +0000
description:
Pullup 1.3 [itojun]:
format string clarification (this does not compile on alpha without the fix)
diffstat:
dist/ntp/ntpdc/ntpdc.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (51 lines):
diff -r e5894f79d378 -r 6ff122fa1bc3 dist/ntp/ntpdc/ntpdc.c
--- a/dist/ntp/ntpdc/ntpdc.c Tue Oct 17 22:41:47 2000 +0000
+++ b/dist/ntp/ntpdc/ntpdc.c Tue Oct 17 22:59:04 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntpdc.c,v 1.1.1.1.4.1 2000/10/17 19:50:45 tv Exp $ */
+/* $NetBSD: ntpdc.c,v 1.1.1.1.4.2 2000/10/17 22:59:04 tv Exp $ */
/*
* ntpdc - control and monitor your ntpd daemon
@@ -447,13 +447,13 @@
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd == INVALID_SOCKET) {
- error("socket", "", "");
+ error("socket");
exit(-1);
}
#else
sockfd = socket(AF_INET, SOCK_DGRAM, 0);
if (sockfd == -1)
- error("socket", "", "");
+ error("socket");
#endif /* SYS_WINNT */
@@ -464,14 +464,14 @@
if (setsockopt(sockfd, SOL_SOCKET, SO_RCVBUF,
&rbufsize, sizeof(int)) == -1)
- error("setsockopt", "", "");
+ error("setsockopt");
}
# endif
#endif
if (connect(sockfd, (struct sockaddr *)&hostaddr,
sizeof(hostaddr)) == -1)
- error("connect", "", "");
+ error("connect");
havehost = 1;
return 1;
@@ -489,7 +489,7 @@
)
{
if (send(sockfd, xdata, xdatalen, 0) == -1) {
- warning("write to %s failed", currenthost, "");
+ warning("write to %s failed", currenthost);
return -1;
}
Home |
Main Index |
Thread Index |
Old Index