diff options
| author | epoch <epoch@enzo.thebackupbox.net> | 2021-11-14 04:42:16 +0000 | 
|---|---|---|
| committer | epoch <epoch@enzo.thebackupbox.net> | 2021-11-14 04:42:16 +0000 | 
| commit | 4449a5ae21c9d4eb0ecb5eae5332e272066f90d3 (patch) | |
| tree | 1be8027c1322d4737a23d547b15694bc26b31819 | |
| parent | 14735f7b8de640945b4ded3c576534b0f05ff468 (diff) | |
| download | uritools-4449a5ae21c9d4eb0ecb5eae5332e272066f90d3.tar.gz uritools-4449a5ae21c9d4eb0ecb5eae5332e272066f90d3.zip | |
rule needs to be signed char because raspi defaults char to unsigned so...
| -rw-r--r-- | urigetline.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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; | 
