From 4449a5ae21c9d4eb0ecb5eae5332e272066f90d3 Mon Sep 17 00:00:00 2001 From: epoch Date: Sun, 14 Nov 2021 04:42:16 +0000 Subject: rule needs to be signed char because raspi defaults char to unsigned so... --- urigetline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'urigetline.c') diff --git a/urigetline.c b/urigetline.c index 2d6cd28..92fa124 100644 --- a/urigetline.c +++ b/urigetline.c @@ -11,7 +11,7 @@ #define MATCH_REVERSE -1 // return 1 if the match and rule should have the main function print this URL. -int match(char rule,char *part,char *arg) { +int match(signed char rule,char *part,char *arg) { switch(rule) { case MATCH_UNEXIST: if(part == 0) return 1; @@ -37,7 +37,7 @@ int main(int argc,char *argv[]) {//argument needs to be the URI int ret=1; struct uri u; char matches; - char rule=MATCH_PATTERN; + signed char rule=MATCH_PATTERN; char *line=malloc(LINE_LENGTH); char *a,*b,*c; char *command; -- cgit v1.2.3