summaryrefslogtreecommitdiffstats
path: root/sys/nfs4client
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2003-12-11 11:30:26 +0000
committeralfred <alfred@FreeBSD.org>2003-12-11 11:30:26 +0000
commit316515f56f8274c37d948723c6d5333fd37eab63 (patch)
tree38151d904e806641f029f1e90becdcc0bae07d2a /sys/nfs4client
parent618cf169edbae410e1e0e1fee5f2e36fe5eccd43 (diff)
downloadFreeBSD-src-316515f56f8274c37d948723c6d5333fd37eab63.zip
FreeBSD-src-316515f56f8274c37d948723c6d5333fd37eab63.tar.gz
This patch fixes two little portability (to !GCC compilers) problems:
1. Use C99-style variable argument macros rather than GNU ones. 2. Don't cast id to ident_t. Its type is already ident_t and casting to a union type is a constraint violation. Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
Diffstat (limited to 'sys/nfs4client')
-rw-r--r--sys/nfs4client/nfs4_idmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/nfs4client/nfs4_idmap.c b/sys/nfs4client/nfs4_idmap.c
index 1b932e6..0b7407d 100644
--- a/sys/nfs4client/nfs4_idmap.c
+++ b/sys/nfs4client/nfs4_idmap.c
@@ -46,9 +46,9 @@
#ifdef IDMAPVERBOSE
-#define IDMAP_DEBUG(X...) printf(X);
+#define IDMAP_DEBUG(...) printf(__VA_ARGS__);
#else
-#define IDMAP_DEBUG(X...)
+#define IDMAP_DEBUG(...)
#endif
#define IDMAP_HASH_SIZE 37
@@ -401,7 +401,7 @@ idmap_gid_to_name(gid_t gid, char ** name, size_t * len)
if ((e = idmap_id_lookup(IDMAP_TYPE_GID, id)) == NULL) {
- if ((error = idmap_upcall_id(IDMAP_TYPE_GID, (ident_t)id, &e))) {
+ if ((error = idmap_upcall_id(IDMAP_TYPE_GID, id, &e))) {
IDMAP_DEBUG("error in upcall\n");
return error;
}
OpenPOWER on IntegriCloud