diff --git a/source/find.c b/source/find.c index 16cd128..28cccb7 100644 --- a/source/find.c +++ b/source/find.c @@ -173,8 +173,10 @@ static bool check_for_assignment(void) { if(((asgn_char[0] == '<') || (asgn_char[0] == '>')) && (asgn_char[1] == asgn_char[0]) && ((asgn_char[2] == '=') || - ((asgn_char[2] & 0x80) && (dichar1[(asgn_char[2] & 0177) / 8] == '=')))) + ((asgn_char[2] & 0x80) && (dichar1[(asgn_char[2] & 0177) / 8] == '=')))) { return true; + } + return false; } diff --git a/source/mypopen.c b/source/mypopen.c index c9c4853..95dbc40 100644 --- a/source/mypopen.c +++ b/source/mypopen.c @@ -41,7 +41,6 @@ #define RDR 0 #define WTR 1 -/* HBB 20010312: make this a bit safer --- don't blindly assume it's 1 */ #ifdef FD_CLOEXEC # define CLOSE_ON_EXEC FD_CLOEXEC #else diff --git a/source/vpfopen.c b/source/vpfopen.c index fbc1966..fa246a7 100644 --- a/source/vpfopen.c +++ b/source/vpfopen.c @@ -42,8 +42,8 @@ FILE *vpfopen(char *filename, char *type) { FILE *returncode; int i; - if((returncode = myfopen(filename, type)) == NULL && - filename[0] != '/' + if((returncode = myfopen(filename, type)) == NULL + && filename[0] != '/' /* && strcmp(type, "r") == 0 */ /* HBB: this breaks if type=="rb" */ && type[0] == 'r') { vpinit(NULL); @@ -52,5 +52,5 @@ FILE *vpfopen(char *filename, char *type) { if((returncode = myfopen(buf, type)) != NULL) { break; } } } - return (returncode); + return returncode; }