Quellcode durchsuchen

warning clean up

dev
anon vor 8 Monaten
Ursprung
Commit
e785359af3
4 geänderte Dateien mit 5 neuen und 5 gelöschten Zeilen
  1. +2
    -2
      src/dir.c
  2. +1
    -1
      src/exec.c
  3. +2
    -1
      src/input.c
  4. +0
    -1
      src/readline.c

+ 2
- 2
src/dir.c Datei anzeigen

@@ -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;



+ 1
- 1
src/exec.c Datei anzeigen

@@ -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 */


+ 2
- 1
src/input.c Datei anzeigen

@@ -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;


+ 0
- 1
src/readline.c Datei anzeigen

@@ -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) {


Laden…
Abbrechen
Speichern