git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0487413
)
remove inet_aton()
author
Gerald Carter
<jerry@samba.org>
Wed, 4 Sep 2002 01:15:01 +0000
(
01:15
+0000)
committer
Gerald Carter
<jerry@samba.org>
Wed, 4 Sep 2002 01:15:01 +0000
(
01:15
+0000)
source/rpcclient/rpcclient.c
patch
|
blob
|
history
diff --git
a/source/rpcclient/rpcclient.c
b/source/rpcclient/rpcclient.c
index 5f15c57577489c139c9e42b19de42a12c1fc41fd..5f1f7a9f9a8d4e19cee2ed340f18d2499dfccf76 100644
(file)
--- a/
source/rpcclient/rpcclient.c
+++ b/
source/rpcclient/rpcclient.c
@@
-667,7
+667,7
@@
static NTSTATUS process_cmd(struct cli_state *cli, char *cmd)
break;
}
case 'I':
- if (
!inet_aton(opt_ipaddr, &server_ip)
) {
+ if (
(server_ip.s_addr=inet_addr(opt_ipaddr)) == INADDR_NONE
) {
fprintf(stderr, "%s not a valid IP address\n",
opt_ipaddr);
return 1;