summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1995-04-10 18:57:08 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1995-04-10 18:57:08 +0000
commita5ce0490a486b6b3c418b2d4082e6efa20af0759 (patch)
tree9e0655c3f2d03586bdd3f117403cf5aa6ba2c1f3 /sbin
parent3c6bef7ee8ea74f488e02d5c749f6edef437e157 (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/umount/umount.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c
index 9059babdc90ec..24d7001b11be1 100644
--- a/sbin/umount/umount.c
+++ b/sbin/umount/umount.c
@@ -308,11 +308,14 @@ int
selected(type)
int type;
{
+ int *tmp_typelist;
+
+ tmp_typelist=typelist;
/* If no type specified, it's always selected. */
- if (typelist == NULL)
+ if (tmp_typelist == NULL)
return (1);
- for (; *typelist != MOUNT_NONE; ++typelist)
- if (type == *typelist)
+ for (; *tmp_typelist != MOUNT_NONE; ++tmp_typelist)
+ if (type == *tmp_typelist)
return (which == IN_LIST ? 1 : 0);
return (which == IN_LIST ? 0 : 1);
}