summaryrefslogtreecommitdiffstats
path: root/usr.sbin/extattrctl/extattrctl.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-03-19 06:00:41 +0000
committerrwatson <rwatson@FreeBSD.org>2001-03-19 06:00:41 +0000
commitb4ebfdcb15d7daedf37d95268e7c83004f95ef20 (patch)
tree3b511b4899145c54ad79c63a45e8fecce3110620 /usr.sbin/extattrctl/extattrctl.c
parentf9cefd40abb5c0593754599639e4d354d8ad64ca (diff)
downloadFreeBSD-src-b4ebfdcb15d7daedf37d95268e7c83004f95ef20.zip
FreeBSD-src-b4ebfdcb15d7daedf37d95268e7c83004f95ef20.tar.gz
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
reserved word. Submitted by: jkh Obtained from: TrustedBSD Project
Diffstat (limited to 'usr.sbin/extattrctl/extattrctl.c')
-rw-r--r--usr.sbin/extattrctl/extattrctl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/extattrctl/extattrctl.c b/usr.sbin/extattrctl/extattrctl.c
index eeaf2cd..c5b60552 100644
--- a/usr.sbin/extattrctl/extattrctl.c
+++ b/usr.sbin/extattrctl/extattrctl.c
@@ -57,8 +57,8 @@ usage(void)
" extattrctl start [path]\n"
" extattrctl stop [path]\n"
" extattrctl initattr [-f] [-p path] [attrsize] [attrfile]\n"
- " extattrctl enable [path] [namespace] [attrname] [attrfile]\n"
- " extattrctl disable [path] [namespace] [attrname]\n");
+ " extattrctl enable [path] [attrnamespace] [attrname] [attrfile]\n"
+ " extattrctl disable [path] [attrnamespace] [attrname]\n");
exit(-1);
}
@@ -159,7 +159,7 @@ initattr(int argc, char *argv[])
int
main(int argc, char *argv[])
{
- int error = 0, namespace;
+ int error = 0, attrnamespace;
if (argc < 2)
usage();
@@ -187,13 +187,13 @@ main(int argc, char *argv[])
} else if (!strcmp(argv[1], "enable")) {
if (argc != 6)
usage();
- error = extattr_string_to_namespace(argv[3], &namespace);
+ error = extattr_string_to_namespace(argv[3], &attrnamespace);
if (error) {
perror("extattrctl enable");
return (-1);
}
error = extattrctl(argv[2], UFS_EXTATTR_CMD_ENABLE, argv[5],
- namespace, argv[4]);
+ attrnamespace, argv[4]);
if (error) {
perror("extattrctl enable");
return (-1);
@@ -202,13 +202,13 @@ main(int argc, char *argv[])
} else if (!strcmp(argv[1], "disable")) {
if (argc != 5)
usage();
- error = extattr_string_to_namespace(argv[3], &namespace);
+ error = extattr_string_to_namespace(argv[3], &attrnamespace);
if (error) {
perror("extattrctl disable");
return (-1);
}
error = extattrctl(argv[2], UFS_EXTATTR_CMD_DISABLE, NULL,
- namespace, argv[4]);
+ attrnamespace, argv[4]);
if (error) {
perror("extattrctl disable");
return (-1);
OpenPOWER on IntegriCloud