summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2011-07-15 15:34:29 +0200
committerChristian Ambach <ambi@samba.org>2011-07-21 14:54:50 +0200
commitffbecc0cf6878f935aec9427e632f7cfe8571149 (patch)
tree187e7ce38396af07c6a9c0a3e19021b34af272c2 /source3
parenta78407b9ca24d0fd2dae06debccbe0859e76ca87 (diff)
downloadsamba-ffbecc0cf6878f935aec9427e632f7cfe8571149.tar.gz
samba-ffbecc0cf6878f935aec9427e632f7cfe8571149.tar.bz2
samba-ffbecc0cf6878f935aec9427e632f7cfe8571149.zip
s3:lib/afs_settoken fix some compiler warnings
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/afs_settoken.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/lib/afs_settoken.c b/source3/lib/afs_settoken.c
index 149fc66b0e..971c145cde 100644
--- a/source3/lib/afs_settoken.c
+++ b/source3/lib/afs_settoken.c
@@ -44,13 +44,14 @@ int afs_syscall( int subcall,
return( syscall( SYS_afs_syscall, subcall, path, cmd, cmarg, follow));
*/
int errcode;
+ int proc_afs_file;
struct afsprocdata afs_syscall_data;
afs_syscall_data.syscall = subcall;
afs_syscall_data.param1 = (long)path;
afs_syscall_data.param2 = cmd;
afs_syscall_data.param3 = (long)cmarg;
afs_syscall_data.param4 = follow;
- int proc_afs_file = open(PROC_SYSCALL_FNAME, O_RDWR);
+ proc_afs_file = open(PROC_SYSCALL_FNAME, O_RDWR);
if (proc_afs_file < 0)
proc_afs_file = open(PROC_SYSCALL_ARLA_FNAME, O_RDWR);
if (proc_afs_file < 0)
@@ -105,8 +106,8 @@ static bool afs_decode_token(const char *string, char **cell,
if ( (blob.data == NULL) ||
(blob.length != sizeof(result_ct.HandShakeKey) )) {
- DEBUG(10, ("invalid key: %x/%d\n", (uint32)blob.data,
- blob.length));
+ DEBUG(10, ("invalid key: %x/%lu\n", (uint8_t)*blob.data,
+ (unsigned long) blob.length));
return False;
}