Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.sbin/amd Pull up revision 1.9 (requested by he):



details:   https://anonhg.NetBSD.org/src/rev/9763ff234878
branches:  netbsd-1-4
changeset: 471116:9763ff234878
user:      he <he%NetBSD.org@localhost>
date:      Thu Oct 19 17:04:39 2000 +0000

description:
Pull up revision 1.9 (requested by he):
  Format string cleanup.

diffstat:

 usr.sbin/amd/hlfsd/hlfsd.c      |  4 ++--
 usr.sbin/amd/include/am_utils.h |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 05557fd41e38 -r 9763ff234878 usr.sbin/amd/hlfsd/hlfsd.c
--- a/usr.sbin/amd/hlfsd/hlfsd.c        Thu Oct 19 17:03:14 2000 +0000
+++ b/usr.sbin/amd/hlfsd/hlfsd.c        Thu Oct 19 17:04:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hlfsd.c,v 1.7.2.1 1999/09/21 04:57:26 cgd Exp $        */
+/*     $NetBSD: hlfsd.c,v 1.7.2.2 2000/10/19 17:04:39 he Exp $ */
 
 /*
  * Copyright (c) 1997-1999 Erez Zadok
@@ -949,7 +949,7 @@
 #endif
     }
   }
-  plog(XLOG_FATAL, mess);
+  plog(XLOG_FATAL, "%s", mess);
 
   hlfsd_going_down(1);
 }
diff -r 05557fd41e38 -r 9763ff234878 usr.sbin/amd/include/am_utils.h
--- a/usr.sbin/amd/include/am_utils.h   Thu Oct 19 17:03:14 2000 +0000
+++ b/usr.sbin/amd/include/am_utils.h   Thu Oct 19 17:04:39 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: am_utils.h,v 1.7.2.1 1999/09/21 04:57:47 cgd Exp $     */
+/*     $NetBSD: am_utils.h,v 1.7.2.2 2000/10/19 17:04:43 he Exp $      */
 
 /*
  * Copyright (c) 1997-1999 Erez Zadok
@@ -645,7 +645,7 @@
 extern void normalize_slash(char *);
 extern void ops_showamfstypes(char *buf);
 extern void ops_showfstypes(char *outbuf);
-extern void plog(int, char *,...)
+extern void plog(int, const char *,...)
      __attribute__ ((__format__ (__printf__, 2, 3)));
 extern void rem_que(qelem *);
 extern void reschedule_timeout_mp(void);
@@ -967,7 +967,7 @@
 extern int debug_flags;                /* Debug options */
 extern int debug_option (char *opt);
 extern struct opt_tab dbg_opt[];
-extern void dplog(char *fmt, ...)
+extern void dplog(const char *fmt, ...)
      __attribute__ ((__format__ (__printf__, 1, 2)));
 
 /**************************************************************************/



Home | Main Index | Thread Index | Old Index