summaryrefslogtreecommitdiffstats
path: root/lib/libutil
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-03-19 05:05:41 +0000
committerrwatson <rwatson@FreeBSD.org>2001-03-19 05:05:41 +0000
commitd1afe32a72b56e9802f90d9388dc3c3717a0be5a (patch)
tree741fd951b8243c493639d4c5e7f6bc0e82b3feb5 /lib/libutil
parent84fcfdb0bf867752d6716df1acf1eedf2198814d (diff)
downloadFreeBSD-src-d1afe32a72b56e9802f90d9388dc3c3717a0be5a.zip
FreeBSD-src-d1afe32a72b56e9802f90d9388dc3c3717a0be5a.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 'lib/libutil')
-rw-r--r--lib/libutil/extattr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libutil/extattr.c b/lib/libutil/extattr.c
index 1fcfdbb..d315a7f 100644
--- a/lib/libutil/extattr.c
+++ b/lib/libutil/extattr.c
@@ -36,10 +36,10 @@
#include <string.h>
int
-extattr_namespace_to_string(int namespace, char **string)
+extattr_namespace_to_string(int attrnamespace, char **string)
{
- switch(namespace) {
+ switch(attrnamespace) {
case EXTATTR_NAMESPACE_USER:
if (*string != NULL)
*string = strdup(EXTATTR_NAMESPACE_USER_STRING);
@@ -57,16 +57,16 @@ extattr_namespace_to_string(int namespace, char **string)
}
int
-extattr_string_to_namespace(const char *string, int *namespace)
+extattr_string_to_namespace(const char *string, int *attrnamespace)
{
if (!strcmp(string, EXTATTR_NAMESPACE_USER_STRING)) {
- if (namespace != NULL)
- *namespace = EXTATTR_NAMESPACE_USER;
+ if (attrnamespace != NULL)
+ *attrnamespace = EXTATTR_NAMESPACE_USER;
return (0);
} else if (!strcmp(string, EXTATTR_NAMESPACE_SYSTEM_STRING)) {
- if (namespace != NULL)
- *namespace = EXTATTR_NAMESPACE_SYSTEM;
+ if (attrnamespace != NULL)
+ *attrnamespace = EXTATTR_NAMESPACE_SYSTEM;
return (0);
} else {
errno = EINVAL;
OpenPOWER on IntegriCloud