|
diff --git a/cgit.c b/cgit.c index e9bafb5..9452884 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -247,16 +247,18 @@ static void querystring_cb(const char *name, const char *value) |
247 | } else if (!strcmp(name, "showmsg")) { |
247 | } else if (!strcmp(name, "showmsg")) { |
248 | ctx.qry.showmsg = atoi(value); |
248 | ctx.qry.showmsg = atoi(value); |
249 | } else if (!strcmp(name, "period")) { |
249 | } else if (!strcmp(name, "period")) { |
250 | ctx.qry.period = xstrdup(value); |
250 | ctx.qry.period = xstrdup(value); |
251 | } else if (!strcmp(name, "ss")) { |
251 | } else if (!strcmp(name, "ss")) { |
252 | ctx.qry.ssdiff = atoi(value); |
252 | ctx.qry.ssdiff = atoi(value); |
253 | } else if (!strcmp(name, "context")) { |
253 | } else if (!strcmp(name, "context")) { |
254 | ctx.qry.context = atoi(value); |
254 | ctx.qry.context = atoi(value); |
| |
255 | } else if (!strcmp(name, "ignorews")) { |
| |
256 | ctx.qry.ignorews = atoi(value); |
255 | } |
257 | } |
256 | } |
258 | } |
257 | |
259 | |
258 | char *xstrdupn(const char *str) |
260 | char *xstrdupn(const char *str) |
259 | { |
261 | { |
260 | return (str ? xstrdup(str) : NULL); |
262 | return (str ? xstrdup(str) : NULL); |
261 | } |
263 | } |
262 | |
264 | |
|