projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e837ec5
)
removed printf, fixed inet_aton() result check
author
ewt
<devnull@localhost>
Fri, 12 Jul 1996 20:28:43 +0000
(20:28 +0000)
committer
ewt
<devnull@localhost>
Fri, 12 Jul 1996 20:28:43 +0000
(20:28 +0000)
CVS patchset: 803
CVS date: 1996/07/12 20:28:43
ftp.c
patch
|
blob
|
history
diff --git
a/ftp.c
b/ftp.c
index
b02e817
..
a9e2ec6
100644
(file)
--- a/
ftp.c
+++ b/
ftp.c
@@
-142,7
+142,7
@@
static int getHostAddress(const char * host, struct in_addr * address) {
struct hostent * hostinfo;
if (isdigit(host[0])) {
- if (inet_aton(host, address)) {
+ if (
!
inet_aton(host, address)) {
return FTPERR_BAD_HOST_ADDR;
}
} else {
@@
-301,7
+301,6
@@
int ftpGetFile(int sock, char * remotename, int dest) {
if (*chptr == ',') *chptr = '.';
}
- printf("remote ip is: %s\n", passReply);
if (!inet_aton(passReply, &dataAddress.sin_addr))
return FTPERR_PASSIVE_ERROR;