From ffac49ababff94d50dafec7b33a1efa97fa87ad1 Mon Sep 17 00:00:00 2001 From: Charles Longeau Date: Sat, 8 Nov 2008 01:29:11 +0000 Subject: fix format string ok otto@ --- usr.bin/getconf/getconf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin/getconf') diff --git a/usr.bin/getconf/getconf.c b/usr.bin/getconf/getconf.c index f889545e2a0..451ecb7dd9f 100644 --- a/usr.bin/getconf/getconf.c +++ b/usr.bin/getconf/getconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getconf.c,v 1.10 2006/12/04 15:05:19 otto Exp $ */ +/* $OpenBSD: getconf.c,v 1.11 2008/11/08 01:29:10 chl Exp $ */ /*- * Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: getconf.c,v 1.10 2006/12/04 15:05:19 otto Exp $"; +static char rcsid[] = "$OpenBSD: getconf.c,v 1.11 2008/11/08 01:29:10 chl Exp $"; #endif /* not lint */ #include @@ -193,9 +193,9 @@ main(int argc, char *argv[]) if (slen == 0 || slen == (size_t)-1) { if (errno) - err(1, "%s", cp->value); + err(1, "%ld", cp->value); else - errx(1, "%s", cp->value); + errx(1, "%ld", cp->value); } if ((sval = malloc(slen)) == NULL) err(1, NULL); -- cgit v1.2.3