Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jul 2002 20:23:46 +0300
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@FreeBSD.org>
Cc:        current@FreeBSD.org
Subject:   Re: sparc64 tinderbox failure
Message-ID:  <20020710172346.GB1118@hades.hell.gr>
In-Reply-To: <200207100958.g6A9wFmY072199@bowie.private>
References:  <200207100958.g6A9wFmY072199@bowie.private>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-07-10 09:58 +0000, Dag-Erling Smorgrav wrote:
> ===> bin/chmod
> cc1: warnings being treated as errors
> /usr/home/des/tinderbox/sparc64/src/bin/chmod/chmod.c: In function `main':
> /usr/home/des/tinderbox/sparc64/src/bin/chmod/chmod.c:174: warning: null format string

How does this look for fixing this warning?

%%%
Index: chmod.c
===================================================================
RCS file: /home/ncvs/src/bin/chmod/chmod.c,v
retrieving revision 1.25
diff -u -r1.25 chmod.c
--- chmod.c	30 Jun 2002 05:13:52 -0000	1.25
+++ chmod.c	10 Jul 2002 17:22:22 -0000
@@ -171,7 +171,7 @@
 	}
 
 	if ((ftsp = fts_open(++argv, fts_options, 0)) == NULL)
-		err(1, NULL);
+		err(1, "%s: %s", *argv, strerror(p->fts_errno));
 	for (rval = 0; (p = fts_read(ftsp)) != NULL;) {
 		switch (p->fts_info) {
 		case FTS_D:			/* Change it at FTS_DP. */
%%%


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020710172346.GB1118>