From 04923c8eb783a099e07e831bc6ce1a010d4cb69a Mon Sep 17 00:00:00 2001 From: Michal Nowak newman x Date: Fri, 26 Jun 2009 22:41:45 -0400 Subject: Removed compiler warnings for unused return values --- dpi/ftp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'dpi/ftp.c') diff --git a/dpi/ftp.c b/dpi/ftp.c index 666a6761..0d733563 100644 --- a/dpi/ftp.c +++ b/dpi/ftp.c @@ -266,7 +266,7 @@ static int try_ftp_transfer(char *url) int main(int argc, char **argv) { char *dpip_tag = NULL, *cmd = NULL, *url = NULL, *url2 = NULL; - int nb; + int nb, rc; char *p, *d_cmd; /* Debugging with a command line argument */ @@ -277,7 +277,11 @@ int main(int argc, char **argv) sh = sock_handler_new(STDIN_FILENO, STDOUT_FILENO, 8*1024); /* wget may need to write a temporary file... */ - chdir("/tmp"); + rc = chdir("/tmp"); + if (rc == -1) { + MSG("paths: error changing directory to /tmp: %s\n", + dStrerror(errno)); + } /* Read the dpi command from STDIN */ if (!dpip_tag) -- cgit v1.2.3