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/ntpq Pullup 1.3 [itojun]:
details: https://anonhg.NetBSD.org/src/rev/c4840a728744
branches: netbsd-1-5
changeset: 489837:c4840a728744
user: tv <tv%NetBSD.org@localhost>
date: Tue Oct 17 22:59:23 2000 +0000
description:
Pullup 1.3 [itojun]:
one more string format cleanup
diffstat:
dist/ntp/ntpq/ntpq.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (69 lines):
diff -r 6ff122fa1bc3 -r c4840a728744 dist/ntp/ntpq/ntpq.c
--- a/dist/ntp/ntpq/ntpq.c Tue Oct 17 22:59:04 2000 +0000
+++ b/dist/ntp/ntpq/ntpq.c Tue Oct 17 22:59:23 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ntpq.c,v 1.1.1.1.4.1 2000/10/17 19:50:45 tv Exp $ */
+/* $NetBSD: ntpq.c,v 1.1.1.1.4.2 2000/10/17 22:59:23 tv Exp $ */
/*
* ntpq - query an NTP server using mode 6 commands
@@ -628,13 +628,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 */
@@ -643,14 +643,14 @@
{ int rbufsize = DATASIZE + 2048; /* 2K for slop */
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;
@@ -672,7 +672,7 @@
if (send(sockfd, xdata, xdatalen, 0) == -1) {
- warning("write to %s failed", currenthost, "");
+ warning("write to %s failed", currenthost);
return -1;
}
@@ -749,7 +749,7 @@
#endif
if (n == -1) {
- warning("select fails", "", "");
+ warning("select fails");
return -1;
}
if (n == 0) {
@@ -783,7 +783,7 @@
n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
if (n == -1) {
- warning("read", "", "");
+ warning("read");
return -1;
}
Home |
Main Index |
Thread Index |
Old Index