cleanups to fix new clang warnings

This commit is contained in:
Vincent Sanders 2014-01-10 15:55:29 +00:00
parent 277bcec7c6
commit 303a29a89c
2 changed files with 4 additions and 6 deletions

View File

@ -27,8 +27,6 @@
#include "content/dirlist.h"
#include "utils/messages.h"
static const char footer[] = "</div>\n</body>\n</html>\n";
static int dirlist_filesize_calculate(unsigned long *bytesize);
static int dirlist_filesize_value(unsigned long bytesize);
static char* dirlist_filesize_unit(unsigned long bytesize);

View File

@ -524,7 +524,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url,
}
num++;
val = strtok('\0', ",");
val = strtok(NULL, ",");
}
break;
case IMAGEMAP_CIRCLE:
@ -543,7 +543,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url,
}
num++;
val = strtok('\0', ",");
val = strtok(NULL, ",");
}
break;
case IMAGEMAP_POLY:
@ -553,7 +553,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url,
while (val != NULL) {
x = atoi(val);
val = strtok('\0', ",");
val = strtok(NULL, ",");
if (val == NULL)
break;
@ -577,7 +577,7 @@ imagemap_addtolist(dom_node *n, nsurl *base_url,
new_map->bounds.poly.ycoords[num - 1] = y;
num++;
val = strtok('\0', ",");
val = strtok(NULL, ",");
}
new_map->bounds.poly.num = num - 1;