Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/lpr/lpd pullup: part of 1.24 -> 1.25 (approved...
details: https://anonhg.NetBSD.org/src/rev/5791e1d8f942
branches: netbsd-1-5
changeset: 489659:5791e1d8f942
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Oct 03 21:43:32 2000 +0000
description:
pullup: part of 1.24 -> 1.25 (approved by releng-1-5)
(this may not raise a real issue)
> don't give result of function directly into syslog, use "%s".
diffstat:
usr.sbin/lpr/lpd/lpd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 6f7e3cd46d3b -r 5791e1d8f942 usr.sbin/lpr/lpd/lpd.c
--- a/usr.sbin/lpr/lpd/lpd.c Tue Oct 03 20:11:00 2000 +0000
+++ b/usr.sbin/lpr/lpd/lpd.c Tue Oct 03 21:43:32 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lpd.c,v 1.22 2000/04/10 08:09:33 mrg Exp $ */
+/* $NetBSD: lpd.c,v 1.22.4.1 2000/10/03 21:43:32 itojun Exp $ */
/*
* Copyright (c) 1983, 1993, 1994
@@ -45,7 +45,7 @@
#if 0
static char sccsid[] = "@(#)lpd.c 8.7 (Berkeley) 5/10/95";
#else
-__RCSID("$NetBSD: lpd.c,v 1.22 2000/04/10 08:09:33 mrg Exp $");
+__RCSID("$NetBSD: lpd.c,v 1.22.4.1 2000/10/03 21:43:32 itojun Exp $");
#endif
#endif /* not lint */
@@ -688,7 +688,7 @@
hints.ai_socktype = SOCK_STREAM;
error = getaddrinfo(NULL, "printer", &hints, &res);
if (error) {
- syslog(LOG_ERR, (gai_strerror(error)));
+ syslog(LOG_ERR, "%s", gai_strerror(error));
mcleanup(0);
}
Home |
Main Index |
Thread Index |
Old Index