Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/puffs/mount_psshfs errx() already contains progname...



details:   https://anonhg.NetBSD.org/src/rev/7b363b04c364
branches:  trunk
changeset: 750594:7b363b04c364
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Jan 07 21:26:49 2010 +0000

description:
errx() already contains progname ...

diffstat:

 usr.sbin/puffs/mount_psshfs/psshfs.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r d6f571cbe9a1 -r 7b363b04c364 usr.sbin/puffs/mount_psshfs/psshfs.c
--- a/usr.sbin/puffs/mount_psshfs/psshfs.c      Thu Jan 07 21:23:10 2010 +0000
+++ b/usr.sbin/puffs/mount_psshfs/psshfs.c      Thu Jan 07 21:26:49 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: psshfs.c,v 1.57 2010/01/07 21:23:10 pooka Exp $        */
+/*     $NetBSD: psshfs.c,v 1.58 2010/01/07 21:26:49 pooka Exp $        */
 
 /*
  * Copyright (c) 2006-2009  Antti Kantee.  All Rights Reserved.
@@ -41,7 +41,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: psshfs.c,v 1.57 2010/01/07 21:23:10 pooka Exp $");
+__RCSID("$NetBSD: psshfs.c,v 1.58 2010/01/07 21:26:49 pooka Exp $");
 #endif /* !lint */
 
 #include <sys/types.h>
@@ -158,8 +158,7 @@
                        pctx.domanglegid = 1;
                        pctx.manglegid = atoi(optarg);
                        if (pctx.manglegid == (gid_t)-1)
-                               errx(1, "%s: -1 not allowed for -g",
-                                   getprogname());
+                               errx(1, "-1 not allowed for -g");
                        pctx.mygid = getegid();
                        break;
                case 'O':
@@ -190,8 +189,7 @@
                        pctx.domangleuid = 1;
                        pctx.mangleuid = atoi(optarg);
                        if (pctx.mangleuid == (uid_t)-1)
-                               errx(1, "%s: -1 not allowed for -u",
-                                   getprogname());
+                               errx(1, "-1 not allowed for -u");
                        pctx.myuid = geteuid();
                        break;
                default:



Home | Main Index | Thread Index | Old Index