diff options
author | ru <ru@FreeBSD.org> | 2005-11-16 12:33:04 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2005-11-16 12:33:04 +0000 |
commit | 4ece2f85e2548fc0ef6c5b40db245d06aeec3a3b (patch) | |
tree | ee19f2d4d8790b0e1a3cd70f09e34ee71cdaec39 | |
parent | 2c6fe0795dfdac098d5914cadc2e33543a5c67c9 (diff) | |
download | FreeBSD-src-4ece2f85e2548fc0ef6c5b40db245d06aeec3a3b.zip FreeBSD-src-4ece2f85e2548fc0ef6c5b40db245d06aeec3a3b.tar.gz |
Unbreak on amd64.
-rw-r--r-- | contrib/smbfs/mount_smbfs/mount_smbfs.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/smbfs/mount_smbfs/mount_smbfs.c b/contrib/smbfs/mount_smbfs/mount_smbfs.c index 1c0d6f7..fdcdd1a 100644 --- a/contrib/smbfs/mount_smbfs/mount_smbfs.c +++ b/contrib/smbfs/mount_smbfs/mount_smbfs.c @@ -91,8 +91,8 @@ main(int argc, char *argv[]) iov = NULL; iovlen = 0; dev = 0; - uid = -1; - gid = -1; + uid = (uid_t)-1; + gid = (gid_t)-1; caseopt = 0; file_mode = 0; dir_mode = 0; @@ -125,7 +125,6 @@ main(int argc, char *argv[]) exit(1); mntflags = error = 0; - uid = gid = -1; caseopt = SMB_CS_NONE; @@ -231,9 +230,9 @@ main(int argc, char *argv[]) if (smb_getextattr(mount_point, &einfo) == 0) errx(EX_OSERR, "can't mount on %s twice", mount_point); */ - if (uid == (size_t)-1) + if (uid == (uid_t)-1) uid = st.st_uid; - if (gid == (size_t)-1) + if (gid == (gid_t)-1) gid = st.st_gid; if (file_mode == 0 ) file_mode = st.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO); |