summaryrefslogtreecommitdiff
path: root/dpi/datauri.c
diff options
context:
space:
mode:
authorMichal Nowak newman x <Michal Nowak newman.x@gmail.com>2009-06-26 22:41:45 -0400
committerMichal Nowak newman x <Michal Nowak newman.x@gmail.com>2009-06-26 22:41:45 -0400
commit04923c8eb783a099e07e831bc6ce1a010d4cb69a (patch)
treef3ed14f7db5965c3e35059d986bf494a92548218 /dpi/datauri.c
parentd56c2d5edcf109ef1544002d8a78e518f71db06c (diff)
Removed compiler warnings for unused return values
Diffstat (limited to 'dpi/datauri.c')
-rw-r--r--dpi/datauri.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/dpi/datauri.c b/dpi/datauri.c
index 9d8fbcb7..dd0dbf7f 100644
--- a/dpi/datauri.c
+++ b/dpi/datauri.c
@@ -275,12 +275,17 @@ int main(void)
{
char *dpip_tag = NULL, *cmd = NULL, *url = NULL, *mime_type;
unsigned char *data;
+ int rc;
size_t data_size = 0;
/* Initialize the SockHandler */
sh = sock_handler_new(STDIN_FILENO, STDOUT_FILENO, 8*1024);
- 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 */
dpip_tag = sock_handler_read(sh);