diff options
author | bubbva <none@none> | 2006-04-26 15:16:04 -0700 |
---|---|---|
committer | bubbva <none@none> | 2006-04-26 15:16:04 -0700 |
commit | 14839a76b454c7de413fbc7c57842b674873ee79 (patch) | |
tree | 654b63590a7f3a996011fae8d811dfbdc10150b6 /usr/src/cmd/roles | |
parent | 5cae022b29ba77f67b91c7d668680190a30cbe1c (diff) | |
download | illumos-gate-14839a76b454c7de413fbc7c57842b674873ee79.tar.gz |
6249706 rbac utilities have unused variables
Contributed by Stephen Potter <spp@unixsa.net>.
Diffstat (limited to 'usr/src/cmd/roles')
-rw-r--r-- | usr/src/cmd/roles/roles.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/src/cmd/roles/roles.c b/usr/src/cmd/roles/roles.c index c4b29a1cf2..d5467007ca 100644 --- a/usr/src/cmd/roles/roles.c +++ b/usr/src/cmd/roles/roles.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -20,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -84,7 +83,7 @@ show_roles(char *username, int print_name) return (1); } username = pw->pw_name; - } else if ((pw = getpwnam(username)) == NULL) { + } else if (getpwnam(username) == NULL) { (void) fprintf(stderr, "%s: %s : ", progname, username); (void) fprintf(stderr, gettext("No such user\n")); return (1); |