aboutsummaryrefslogtreecommitdiff
path: root/src/ping903.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ping903.c')
-rw-r--r--src/ping903.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ping903.c b/src/ping903.c
index 3e5aadd..7bc0f1c 100644
--- a/src/ping903.c
+++ b/src/ping903.c
@@ -369,8 +369,6 @@ ept_ip_put(struct MHD_Connection *conn,
const char *url, const char *method, const char *suffix,
struct json_value *unused)
{
- int ret;
-
while (*suffix == '/')
suffix++;
if (!*suffix)
@@ -886,8 +884,9 @@ p903_httpd_handler(void *cls,
}
rc = json_parse_string(pb->base, &jv, &endp);
if (rc != JSON_E_NOERR) {
- error("%s: %s near #%d", url,
- json_strerror(rc), endp - pb->base);
+ error("%s: %s near #%ld", url,
+ json_strerror(rc),
+ endp - pb->base);
return http_response(conn, method, url,
MHD_HTTP_BAD_REQUEST);
}

Return to:

Send suggestions and report system problems to the System administrator.