Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/sdpquery Properly use format strings



details:   https://anonhg.NetBSD.org/src/rev/e34d012e99c1
branches:  trunk
changeset: 765337:e34d012e99c1
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue May 24 12:44:30 2011 +0000

description:
Properly use format strings

diffstat:

 usr.bin/sdpquery/print.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r eeaa0c72aa8b -r e34d012e99c1 usr.bin/sdpquery/print.c
--- a/usr.bin/sdpquery/print.c  Tue May 24 12:42:25 2011 +0000
+++ b/usr.bin/sdpquery/print.c  Tue May 24 12:44:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print.c,v 1.7 2010/12/14 15:18:20 plunky Exp $ */
+/*     $NetBSD: print.c,v 1.8 2011/05/24 12:44:30 joerg Exp $  */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: print.c,v 1.7 2010/12/14 15:18:20 plunky Exp $");
+__RCSID("$NetBSD: print.c,v 1.8 2011/05/24 12:44:30 joerg Exp $");
 
 #include <ctype.h>
 #include <iconv.h>
@@ -1097,7 +1097,7 @@
 
        sep = "\n    ";
        while (sdp_get_uint8(&list, &v)) {
-               printf(sep);
+               printf("%s", sep);
                sep = ", ";
 
                switch(v) {
@@ -1127,7 +1127,7 @@
 
        sep = "\n    ";
        while (sdp_get_uint8(&list, &v)) {
-               printf(sep);
+               printf("%s", sep);
                sep = ", ";
 
                switch(v) {
@@ -1433,7 +1433,7 @@
        printf(" (v%d.%d", (v >> 8), (v & 0xff));
        sep = "; ";
        while (sdp_get_uint16(&seq, &v)) {
-               printf(sep);
+               printf("%s", sep);
                sep = ", ";
 
                switch (v) {



Home | Main Index | Thread Index | Old Index