Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/mail Use proper format strings.



details:   https://anonhg.NetBSD.org/src/rev/6d854c027300
branches:  trunk
changeset: 765332:6d854c027300
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 12:33:22 2011 +0000

description:
Use proper format strings.

diffstat:

 usr.bin/mail/mime_detach.c |  6 +++---
 usr.bin/mail/support.c     |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r a323f6bfb730 -r 6d854c027300 usr.bin/mail/mime_detach.c
--- a/usr.bin/mail/mime_detach.c        Tue May 24 12:32:36 2011 +0000
+++ b/usr.bin/mail/mime_detach.c        Tue May 24 12:33:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mime_detach.c,v 1.5 2009/08/28 14:26:50 christos Exp $ */
+/*     $NetBSD: mime_detach.c,v 1.6 2011/05/24 12:33:22 joerg Exp $    */
 
 /*-
  * Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
 
 #include <sys/cdefs.h>
 #ifndef __lint__
-__RCSID("$NetBSD: mime_detach.c,v 1.5 2009/08/28 14:26:50 christos Exp $");
+__RCSID("$NetBSD: mime_detach.c,v 1.6 2011/05/24 12:33:22 joerg Exp $");
 #endif /* not __lint__ */
 
 #include <assert.h>
@@ -166,7 +166,7 @@
                        return DETACH_RENAME;
                }
        }
-       warn(fname);
+       warn("%s", fname);
        if (fd != -1)
                (void)close(fd);
 
diff -r a323f6bfb730 -r 6d854c027300 usr.bin/mail/support.c
--- a/usr.bin/mail/support.c    Tue May 24 12:32:36 2011 +0000
+++ b/usr.bin/mail/support.c    Tue May 24 12:33:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: support.c,v 1.22 2009/04/10 13:08:25 christos Exp $    */
+/*     $NetBSD: support.c,v 1.23 2011/05/24 12:33:22 joerg Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)aux.c      8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: support.c,v 1.22 2009/04/10 13:08:25 christos Exp $");
+__RCSID("$NetBSD: support.c,v 1.23 2011/05/24 12:33:22 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -733,7 +733,7 @@
        size_t len;
 
        if ((f = Fopen(fname, "r")) == NULL) {
-               warn(fname);
+               warn("%s", fname);
                return;
        }
        while ((line = fgetln(f, &len)) != NULL) {



Home | Main Index | Thread Index | Old Index