summaryrefslogtreecommitdiff
path: root/lib/libutil/pw_util.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1997-10-05 09:40:24 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1997-10-05 09:40:24 +0000
commit97fe7f477fc469b6a75596f47dc98a08e4ed3e13 (patch)
tree55baa49e3efb3c9fd481116b6e7a5d7232c58445 /lib/libutil/pw_util.c
parentc63ba9f5ae735a804cb29cef14222f9fb1958922 (diff)
Notes
Diffstat (limited to 'lib/libutil/pw_util.c')
-rw-r--r--lib/libutil/pw_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/pw_util.c b/lib/libutil/pw_util.c
index 21e0ca5c7e05..5902c077870b 100644
--- a/lib/libutil/pw_util.c
+++ b/lib/libutil/pw_util.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
+static const char sccsid[] = "@(#)pw_util.c 8.3 (Berkeley) 4/2/94";
#endif /* not lint */
/*
@@ -126,7 +126,7 @@ pw_tmp()
int fd;
char *p;
- if (p = strrchr(path, '/'))
+ if ((p = strrchr(path, '/')))
++p;
else
p = path;
@@ -172,7 +172,7 @@ pw_edit(notsetuid)
if (!(editor = getenv("EDITOR")))
editor = _PATH_VI;
- if (p = strrchr(editor, '/'))
+ if ((p = strrchr(editor, '/')))
++p;
else
p = editor;