return result;
}
-static bool gencache_pull_timeout(char *val, time_t *pres, char **pendptr)
+static bool gencache_pull_timeout(uint8_t *val, time_t *pres, char **pendptr)
{
time_t res;
char *endptr;
return false;
}
- res = strtol(val, &endptr, 10);
+ res = strtol((char *)val, &endptr, 10);
if ((endptr == NULL) || (*endptr != '/')) {
- DEBUG(2, ("Invalid gencache data format: %s\n", val));
+ DEBUG(2, ("Invalid gencache data format: %s\n", (char *)val));
return false;
}
if (pres != NULL) {
if (data.dptr == NULL) {
return -1;
}
- ret = gencache_pull_timeout((char *)data.dptr, &t, &endptr);
+ ret = gencache_pull_timeout(data.dptr, &t, &endptr);
if (!ret) {
return -1;
}
return 0;
}
- if (!gencache_pull_timeout((char *)val.dptr, &timeout, NULL)) {
+ if (!gencache_pull_timeout(val.dptr, &timeout, NULL)) {
DEBUG(10, ("Ignoring invalid entry\n"));
return 0;
}
return 0;
}
- ok = gencache_pull_timeout((char *)val.dptr, &timeout, NULL);
+ ok = gencache_pull_timeout(val.dptr, &timeout, NULL);
if (!ok) {
DEBUG(10, ("Ignoring invalid entry\n"));
return 0;
}
}
- if (!gencache_pull_timeout((char *)data.dptr, &timeout, &endptr)) {
+ if (!gencache_pull_timeout(data.dptr, &timeout, &endptr)) {
goto done;
}
endptr += 1;