keep globals notation
This commit is contained in:
parent
883bfed7a7
commit
be0f86df8d
2
vger.c
2
vger.c
|
@ -514,7 +514,7 @@ split_request(const char *request, char *hostname, char *path, char *query)
|
||||||
char buf[BUFSIZ] = {'\0'}; /* to handle error messages */
|
char buf[BUFSIZ] = {'\0'}; /* to handle error messages */
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
ret = regcomp(&greg, gemini_regex, REG_EXTENDED);
|
ret = regcomp(&greg, _gemini_regex, REG_EXTENDED);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
regerror(ret, &greg, buf, sizeof(buf));
|
regerror(ret, &greg, buf, sizeof(buf));
|
||||||
regfree(&greg);
|
regfree(&greg);
|
||||||
|
|
2
vger.h
2
vger.h
|
@ -25,7 +25,7 @@
|
||||||
* [\?]?(.*)$:
|
* [\?]?(.*)$:
|
||||||
* catch everything after ? if any
|
* catch everything after ? if any
|
||||||
*/
|
*/
|
||||||
const char *gemini_regex = "^gemini://+([^/|^\?]*)/*([^\?]*)[\?]?(.*)$";
|
static const char *_gemini_regex = "^gemini://+([^/|^\?]*)/*([^\?]*)[\?]?(.*)$";
|
||||||
|
|
||||||
/* global vars */
|
/* global vars */
|
||||||
static int _retcode = 0;
|
static int _retcode = 0;
|
||||||
|
|
Loading…
Reference in New Issue