keep globals notation

This commit is contained in:
prx 2022-08-17 21:36:54 +02:00
parent 883bfed7a7
commit be0f86df8d
2 changed files with 2 additions and 2 deletions

2
vger.c
View File

@ -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
View File

@ -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;