Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: scanelf.c
Date: Wed, 21 Dec 2011 22:01:53
Message-Id: 20111221220058.54A7D2004B@flycatcher.gentoo.org
1 vapier 11/12/21 22:00:58
2
3 Modified: scanelf.c
4 Log:
5 use warnfp/errp rather than calling strerror(errno) ourselves
6
7 Revision Changes Path
8 1.237 pax-utils/scanelf.c
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?rev=1.237&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?rev=1.237&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/pax-utils/scanelf.c?r1=1.236&r2=1.237
13
14 Index: scanelf.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v
17 retrieving revision 1.236
18 retrieving revision 1.237
19 diff -u -r1.236 -r1.237
20 --- scanelf.c 21 Dec 2011 17:34:12 -0000 1.236
21 +++ scanelf.c 21 Dec 2011 22:00:58 -0000 1.237
22 @@ -1,13 +1,13 @@
23 /*
24 * Copyright 2003-2007 Gentoo Foundation
25 * Distributed under the terms of the GNU General Public License v2
26 - * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.236 2011/12/21 17:34:12 vapier Exp $
27 + * $Header: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v 1.237 2011/12/21 22:00:58 vapier Exp $
28 *
29 * Copyright 2003-2007 Ned Ludd - <solar@g.o>
30 * Copyright 2004-2007 Mike Frysinger - <vapier@g.o>
31 */
32
33 -static const char rcsid[] = "$Id: scanelf.c,v 1.236 2011/12/21 17:34:12 vapier Exp $";
34 +static const char rcsid[] = "$Id: scanelf.c,v 1.237 2011/12/21 22:00:58 vapier Exp $";
35 const char argv0[] = "scanelf";
36
37 #include "paxinc.h"
38 @@ -1676,7 +1676,7 @@
39 if (dir == NULL) {
40 if (subdir_fd != -1)
41 close(subdir_fd);
42 - warnf("could not opendir %s: %s", path, strerror(errno));
43 + warnfp("could not opendir(%s)", path);
44 return 1;
45 }
46 if (be_verbose > 1) printf("%s: scanning dir\n", path);
47 @@ -2071,7 +2071,7 @@
48 break;
49 case 'o': {
50 if (freopen(optarg, "w", stdout) == NULL)
51 - err("Could not open output stream '%s': %s", optarg, strerror(errno));
52 + errp("Could not freopen(%s)", optarg);
53 break;
54 }
55 case 'k':