diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-16 21:46:07 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-16 21:46:07 +0000 |
commit | 71adb8b0a008ad137fc7dcd8702f3d0e4426a657 (patch) | |
tree | 18f70b04d2837d30fcae001aaf3af5bdb76f300c /source3/rpcclient/cmd_samr.c | |
parent | b6993a89af080d4d5c176ae9d539ff553f69c247 (diff) | |
download | samba-71adb8b0a008ad137fc7dcd8702f3d0e4426a657.tar.gz samba-71adb8b0a008ad137fc7dcd8702f3d0e4426a657.tar.bz2 samba-71adb8b0a008ad137fc7dcd8702f3d0e4426a657.zip |
strtoul replace with strtol
(This used to be commit 4ebd2c5140e782ec43d9f7700bd588dfa52a16c7)
Diffstat (limited to 'source3/rpcclient/cmd_samr.c')
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index 5c69c4676c..877abce66e 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -212,22 +212,22 @@ void cmd_sam_enum_users(struct client_info *info) #ifdef DEBUG_TESTING if (next_token(NULL, tmp, NULL, sizeof(tmp))) { - num_entries = (uint16)strtoul(tmp, (char**)NULL, 16); + num_entries = (uint16)strtol(tmp, (char**)NULL, 16); } if (next_token(NULL, tmp, NULL, sizeof(tmp))) { - unk_0 = (uint16)strtoul(tmp, (char**)NULL, 16); + unk_0 = (uint16)strtol(tmp, (char**)NULL, 16); } if (next_token(NULL, tmp, NULL, sizeof(tmp))) { - acb_mask = (uint16)strtoul(tmp, (char**)NULL, 16); + acb_mask = (uint16)strtol(tmp, (char**)NULL, 16); } if (next_token(NULL, tmp, NULL, sizeof(tmp))) { - unk_1 = (uint16)strtoul(tmp, (char**)NULL, 16); + unk_1 = (uint16)strtol(tmp, (char**)NULL, 16); } #endif @@ -373,8 +373,8 @@ void cmd_sam_query_user(struct client_info *info) if (next_token(NULL, rid_str , NULL, sizeof(rid_str )) && next_token(NULL, info_str, NULL, sizeof(info_str))) { - user_rid = strtoul(rid_str , (char**)NULL, 16); - info_level = strtoul(info_str, (char**)NULL, 10); + user_rid = (uint32)strtol(rid_str , (char**)NULL, 16); + info_level = (uint32)strtol(info_str, (char**)NULL, 10); } fprintf(out_hnd, "SAM Query User: rid %x info level %d\n", @@ -463,7 +463,7 @@ void cmd_sam_query_groups(struct client_info *info) if (next_token(NULL, info_str, NULL, sizeof(info_str))) { - switch_value = strtoul(info_str, (char**)NULL, 10); + switch_value = (uint32)strtol(info_str, (char**)NULL, 10); } fprintf(out_hnd, "SAM Query Groups: info level %d\n", switch_value); |