mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-19 21:42:54 +03:00
cleanups to fix new clang warnings
This commit is contained in:
parent
277bcec7c6
commit
303a29a89c
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user