warning clean up
This commit is contained in:
parent
1f18533629
commit
e785359af3
@ -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;
|
||||
|
||||
|
@ -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 */
|
||||
|
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user