warning clean up

This commit is contained in:
anon 2023-09-25 23:15:52 +02:00
parent 1f18533629
commit e785359af3
4 changed files with 5 additions and 5 deletions

View File

@ -418,7 +418,7 @@ void makefilelist(void) {
if((s = inviewpath(newpath)) != NULL) {
addsrcfile(s);
} else {
fprintf(stderr, PROGRAM_NAME, ": cannot find file %s\n", newpath);
fprintf(stderr, PROGRAM_NAME ": cannot find file %s\n", newpath);
errorsfound = true;
}
}
@ -494,7 +494,7 @@ static void scan_dir(const char *adir, bool recurse_dir) {
/* see if this is a source file */
static bool issrcfile(char *path) {
struct stat statstruct;
char *file = basename(path);
const char *file = basename(path);
char *s = strrchr(file, '.');
bool looks_like_source = false;

View File

@ -102,7 +102,7 @@ static int myexecvp(char *a, char **args) {
char msg[MSGLEN + 1];
/* modify argv[0] to reference the last component of its path name */
args[0] = basename(args[0]);
args[0] = (char *)basename(args[0]);
/* execute the program or shell script */
execvp(a, args); /* returns only on failure */

View File

@ -356,6 +356,7 @@ static int global_input(const int c) {
break;
case EOF:
myexit(0);
break;
default:
return 0;
}
@ -368,7 +369,7 @@ int change_input(const int c) {
switch(c) {
case '*': /* invert page */
for(int i = 0; i < (nextline-1); i++) {
for(unsigned i = 0; i < (nextline-1); i++) {
change[topref + i] = !change[topref + i];
}
window_change |= CH_RESULT;

View File

@ -24,7 +24,6 @@ static struct PARTIAL_LINE {
static inline void previous_history_proxy(void);
static inline void next_history_proxy(void);
static inline int rebuild_reference(void);
bool interpret(int c) {