Mercurial > hg > toybox
comparison toys/pending/ftpget.c @ 1389:e59d4322331b draft
fdisk : partitions > 60, are deleted, offset entry for extended partitions was wrong.
fsck: memory leak/segfault resolved.
ftpget : warning for unused variable 'ptr' removed.
author | Ashwini Sharma <ak.ashwini1981@gmail.com> |
---|---|
date | Mon, 14 Jul 2014 05:44:29 -0500 |
parents | ab7f336bfe52 |
children | 00c20f410c46 |
comparison
equal
deleted
inserted
replaced
1388:c4f5f82adce6 | 1389:e59d4322331b |
---|---|
127 } | 127 } |
128 | 128 |
129 static void get_sockaddr(char *host) | 129 static void get_sockaddr(char *host) |
130 { | 130 { |
131 struct addrinfo hints, *result; | 131 struct addrinfo hints, *result; |
132 char *ptr, port[6]; | 132 char port[6]; |
133 int status; | 133 int status; |
134 | 134 |
135 errno = 0; | 135 errno = 0; |
136 snprintf(port, 6, "%ld", TT.port); | 136 snprintf(port, 6, "%ld", TT.port); |
137 | 137 |