Source-Changes-HG archive

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

[src/trunk]: src/bin/getfacl Don't return from dead functions.



details:   https://anonhg.NetBSD.org/src/rev/3c814dbdca75
branches:  trunk
changeset: 933204:3c814dbdca75
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri May 22 01:28:00 2020 +0000

description:
Don't return from dead functions.

diffstat:

 bin/getfacl/getfacl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r f6f9a4a9afa0 -r 3c814dbdca75 bin/getfacl/getfacl.c
--- a/bin/getfacl/getfacl.c     Thu May 21 22:58:46 2020 +0000
+++ b/bin/getfacl/getfacl.c     Fri May 22 01:28:00 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getfacl.c,v 1.1 2020/05/16 18:31:45 christos Exp $     */
+/*     $NetBSD: getfacl.c,v 1.2 2020/05/22 01:28:00 joerg Exp $        */
 
 /*-
  * Copyright (c) 1999, 2001, 2002 Robert N M Watson
@@ -37,7 +37,7 @@
 #if 0
 __FBSDID("$FreeBSD: head/bin/getfacl/getfacl.c 340014 2018-11-01 17:45:29Z markj $");
 #else
-__RCSID("$NetBSD: getfacl.c,v 1.1 2020/05/16 18:31:45 christos Exp $");
+__RCSID("$NetBSD: getfacl.c,v 1.2 2020/05/22 01:28:00 joerg Exp $");
 #endif
 
 #include <sys/types.h>
@@ -61,6 +61,7 @@
 {
 
        fprintf(stderr, "Usage: %s [-dhnqv] [file ...]\n", getprogname());
+       exit(1);
 }
 
 static char *
@@ -319,7 +320,6 @@
                        break;
                default:
                        usage();
-                       return(-1);
                }
        argc -= optind;
        argv += optind;



Home | Main Index | Thread Index | Old Index