Fix compilation warnings, + enable polymorphic /history handler.
This commit is contained in:
parent
ddb8cdfa7a
commit
704e0913c6
@ -821,6 +821,7 @@ handle_history_skip (const struct HistoryArgs *ha,
|
|||||||
return pos->next;
|
return pos->next;
|
||||||
if (hri->count < 0)
|
if (hri->count < 0)
|
||||||
return pos->prev;
|
return pos->prev;
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -848,6 +849,7 @@ handle_history_step (const struct HistoryArgs *ha,
|
|||||||
hri->count++;
|
hri->count++;
|
||||||
return pos->prev;
|
return pos->prev;
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1705,9 +1707,9 @@ handle_mhd_request (void *cls,
|
|||||||
"/history")) &&
|
"/history")) &&
|
||||||
(0 == strcasecmp (method,
|
(0 == strcasecmp (method,
|
||||||
MHD_HTTP_METHOD_GET)) )
|
MHD_HTTP_METHOD_GET)) )
|
||||||
return handle_history (h,
|
return handle_history_new (h,
|
||||||
connection,
|
connection,
|
||||||
con_cls);
|
con_cls);
|
||||||
|
|
||||||
/* Unexpected URL path, just close the connection. */
|
/* Unexpected URL path, just close the connection. */
|
||||||
/* we're rather impolite here, but it's a testcase. */
|
/* we're rather impolite here, but it's a testcase. */
|
||||||
|
Loading…
Reference in New Issue
Block a user