=> "/opt/pkg/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-upstream-trunk/misc/fep", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] ===> Building for fep-1.0nb3 cd /home/pbulk/work/misc/fep/work && for i in *.[ch]; do /usr/bin/sed "s,#endif lint,#endif /* lint */,g" ${i} > ${i}.new && /usr/bin/mv -f ${i}.new ${i}; done --- fep_main.o --- --- fep_edit.o --- --- fep_main.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DTERMIOS -DHAVE_PTMX -I/opt/pkg/include/ncurses -c fep_main.c --- fep_edit.o --- gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include/ncurses -DTERMIOS -DHAVE_PTMX -I/opt/pkg/include/ncurses -c fep_edit.c --- fep_main.o --- fep_main.c:122:1: error: return type defaults to 'int' [-Wimplicit-int] 122 | main(argc, argv) | ^~~~ --- fep_edit.o --- fep_edit.c:113:1: error: return type defaults to 'int' [-Wimplicit-int] 113 | init_bind_table () | ^~~~~~~~~~~~~~~ --- fep_main.o --- fep_main.c: In function 'main': fep_main.c:122:1: warning: old-style function definition [-Wold-style-definition] fep_main.c:128:14: error: conflicting types for 'getenv'; have 'char *(void)' 128 | char *getenv(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from fep_main.c:14: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ --- fep_edit.o --- fep_edit.c:129:1: error: return type defaults to 'int' [-Wimplicit-int] 129 | init_edit_params () | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'init_edit_params': fep_edit.c:132:16: error: conflicting types for 'getenv'; have 'char *(void)' 132 | char *cp, *getenv(); | ^~~~~~ In file included from /usr/include/stdlib.h:41, from fep_edit.c:26: /usr/include/iso/stdlib_iso.h:139:14: note: previous declaration of 'getenv' with type 'char *(const char *)' 139 | extern char *getenv(const char *); | ^~~~~~ fep_edit.c:135:16: error: too many arguments to function 'look_var'; expected 0, have 1 135 | if (term = look_var ("term")) { | ^~~~~~~~ ~~~~~~ In file included from fep_edit.c:33: fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ fep_edit.c:136:13: error: implicit declaration of function 'tgetent'; did you mean 'getenv'? [-Wimplicit-function-declaration] 136 | if (tgetent (sbuf, term) == 1) { | ^~~~~~~ | getenv --- fep_main.o --- fep_main.c:141:5: error: implicit declaration of function 'init_bind_table' [-Wimplicit-function-declaration] 141 | init_bind_table (); | ^~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:138:25: error: implicit declaration of function 'tgetnum' [-Wimplicit-function-declaration] 138 | lines = tgetnum ("li"); | ^~~~~~~ fep_edit.c:141:26: error: too many arguments to function 'tgetstr'; expected 0, have 2 141 | term_clear = tgetstr ("cl", &strspace_addr); | ^~~~~~~ ~~~~ fep_edit.c:133:30: note: declared here 133 | char sbuf[2048], *term, *tgetstr(); | ^~~~~~~ fep_edit.c:151:5: error: implicit declaration of function 'set_var' [-Wimplicit-function-declaration] 151 | set_var ("crt", sbuf); | ^~~~~~~ --- fep_main.o --- fep_main.c:146:5: error: implicit declaration of function 'set_default_vars' [-Wimplicit-function-declaration] 146 | set_default_vars (); | ^~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:154:13: error: too many arguments to function 'look_var'; expected 0, have 1 154 | if (look_var ("editmode")) | ^~~~~~~~ ~~~~~~~~~~ --- fep_main.o --- fep_main.c:153:13: error: too many arguments to function 'getenv'; expected 0, have 1 153 | if ((cp=getenv("EDITMODE")) && (eq(cp,"emacs")||eq(cp,"vi"))) | ^~~~~~ ~~~~~~~~~~ --- fep_edit.o --- fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_main.o --- fep_main.c:128:14: note: declared here 128 | char *getenv(); | ^~~~~~ --- fep_edit.o --- fep_edit.c:155:34: error: too many arguments to function 'look_var'; expected 0, have 1 155 | set_var ("editmode", look_var ("editmode")); | ^~~~~~~~ ~~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_main.o --- In file included from fep_main.c:31: fep_defs.h:26:26: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_main.c:153:37: note: in expansion of macro 'eq' 153 | if ((cp=getenv("EDITMODE")) && (eq(cp,"emacs")||eq(cp,"vi"))) | ^~ fep_main.c:34:1: note: include '' or provide a declaration of 'strcmp' 33 | #include "fep_funcs.h" +++ |+#include 34 | #ifdef STAT --- fep_edit.o --- fep_edit.c:160:26: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration] 160 | set_var ("showhist", itoa (lines - 1)); | ^~~~ --- fep_main.o --- fep_main.c:154:9: error: implicit declaration of function 'set_only_var' [-Wimplicit-function-declaration] 154 | set_only_var ("editmode", cp); | ^~~~~~~~~~~~ fep_main.c:156:12: error: too many arguments to function 'getenv'; expected 0, have 1 156 | if (cp=getenv("USER")) | ^~~~~~ ~~~~~~ fep_main.c:128:14: note: declared here 128 | char *getenv(); | ^~~~~~ --- fep_edit.o --- fep_edit.c:165:5: error: implicit declaration of function 'sourceRcFile' [-Wimplicit-function-declaration] 165 | sourceRcFile (); | ^~~~~~~~~~~~ --- fep_main.o --- fep_main.c:159:12: error: too many arguments to function 'getenv'; expected 0, have 1 159 | if (cp=getenv("HOME")) | ^~~~~~ ~~~~~~ --- fep_edit.o --- fep_edit.c:173:13: error: too many arguments to function 'look_var'; expected 0, have 1 173 | if (look_var ("savehist") && (cp = look_var ("history-file"))) { | ^~~~~~~~ ~~~~~~~~~~ --- fep_main.o --- fep_main.c:128:14: note: declared here 128 | char *getenv(); | ^~~~~~ --- fep_edit.o --- fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_main.o --- fep_main.c:162:12: error: too many arguments to function 'getenv'; expected 0, have 1 162 | if (cp=getenv("TERM")) | ^~~~~~ ~~~~~~ fep_main.c:128:14: note: declared here 128 | char *getenv(); | ^~~~~~ --- fep_edit.o --- fep_edit.c:173:44: error: too many arguments to function 'look_var'; expected 0, have 1 173 | if (look_var ("savehist") && (cp = look_var ("history-file"))) { | ^~~~~~~~ ~~~~~~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_main.o --- fep_main.c:165:12: error: too many arguments to function 'getenv'; expected 0, have 1 165 | if (cp=getenv("SHELL")) | ^~~~~~ ~~~~~~~ fep_main.c:128:14: note: declared here 128 | char *getenv(); | ^~~~~~ --- fep_edit.o --- fep_edit.c:174:18: error: too many arguments to function 'mk_home_relative'; expected 0, have 1 174 | cp = mk_home_relative (cp); | ^~~~~~~~~~~~~~~~ ~~ fep_edit.c:171:20: note: declared here 171 | char *cp, *mk_home_relative (); | ^~~~~~~~~~~~~~~~ fep_edit.c:177:17: error: implicit declaration of function 'read_history'; did you mean 'fep_history'? [-Wimplicit-function-declaration] 177 | read_history (cp); | ^~~~~~~~~~~~ | fep_history fep_edit.c:190:12: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 190 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:34:1: note: include '' or provide a declaration of 'strcpy' 33 | #include "fep_funcs.h" +++ |+#include 34 | fep_edit.c:190:12: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 190 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:190:12: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:198:1: error: return type defaults to 'int' [-Wimplicit-int] 198 | initEmacsBindings (cft, aft) | ^~~~~~~~~~~~~~~~~ fep_edit.c: In function 'initEmacsBindings': fep_edit.c:198:1: warning: old-style function definition [-Wold-style-definition] --- fep_main.o --- fep_main.c:194:25: error: implicit declaration of function 'usageAndExit' [-Wimplicit-function-declaration] 194 | usageAndExit (); | ^~~~~~~~~~~~ fep_main.c:208:30: error: too many arguments to function 'allocAndCopyThere'; expected 0, have 1 208 | prompt = allocAndCopyThere (argv[1]); | ^~~~~~~~~~~~~~~~~ ~~~~~~~ fep_main.c:130:14: note: declared here 130 | char *allocAndCopyThere(); | ^~~~~~~~~~~~~~~~~ fep_main.c:211:30: error: too many arguments to function 'allocAndCopyThere'; expected 0, have 1 211 | prompt = allocAndCopyThere (argv[1] + 2); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~~~ fep_main.c:130:14: note: declared here 130 | char *allocAndCopyThere(); | ^~~~~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:261:9: error: implicit declaration of function 'bind_key'; did you mean 'bind_to_key'? [-Wimplicit-function-declaration] 261 | bind_key (cft, ftp->bt_func, ftp->bt_s, fep_abort); | ^~~~~~~~ | bind_to_key fep_edit.c: In function 'get_line': fep_edit.c:276:12: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 276 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:276:12: note: include '' or provide a declaration of 'strcpy' --- fep_main.o --- fep_main.c:234:5: error: implicit declaration of function 'look_cmdinfo' [-Wimplicit-function-declaration] 234 | look_cmdinfo (argv[1]); | ^~~~~~~~~~~~ fep_main.c:240:30: warning: conflicting types for built-in function 'rindex'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 240 | char *cp = argv[1], *rindex(); | ^~~~~~ fep_main.c:242:13: error: implicit declaration of function 'any' [-Wimplicit-function-declaration] 242 | if (any ('/', cp)) | ^~~ fep_main.c:243:18: error: too many arguments to function 'rindex'; expected 0, have 2 243 | cp = rindex (cp, '/') + 1; | ^~~~~~ ~~ fep_main.c:240:30: note: declared here 240 | char *cp = argv[1], *rindex(); | ^~~~~~ --- fep_edit.o --- fep_edit.c:278:5: error: implicit declaration of function 'resetCurrentHistory'; did you mean 'insert_current_history'? [-Wimplicit-function-declaration] 278 | resetCurrentHistory (); | ^~~~~~~~~~~~~~~~~~~ | insert_current_history --- fep_main.o --- fep_main.c:244:9: error: implicit declaration of function 'set_var' [-Wimplicit-function-declaration] 244 | set_var (cp, "1"); | ^~~~~~~ fep_main.c:251:9: error: implicit declaration of function 'execvp' [-Wimplicit-function-declaration] 251 | execvp (*commandv, commandv, 0); | ^~~~~~ fep_main.c:251:9: warning: too many arguments to built-in function 'execvp' expecting 2 [-Wbuiltin-declaration-mismatch] --- fep_edit.o --- fep_edit.c:297:9: error: implicit declaration of function 'swallow_output' [-Wimplicit-function-declaration] 297 | swallow_output(); | ^~~~~~~~~~~~~~ fep_edit.c:305:17: error: too many arguments to function 'look_var'; expected 0, have 1 305 | if (look_var ("verbose")) | ^~~~~~~~ ~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_main.o --- fep_main.c:256:5: error: implicit declaration of function 'get_pty_master' [-Wimplicit-function-declaration] 256 | get_pty_master (); | ^~~~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:307:13: error: implicit declaration of function 'errorBell' [-Wimplicit-function-declaration] 307 | errorBell (); | ^~~~~~~~~ --- fep_main.o --- fep_main.c:257:5: error: implicit declaration of function 'fix_tty' [-Wimplicit-function-declaration] 257 | fix_tty (); | ^~~~~~~ fep_main.c:260:13: error: too many arguments to function 'getenv'; expected 0, have 1 260 | if (getenv ("HISTLEN")) | ^~~~~~ ~~~~~~~~~ fep_main.c:128:14: note: declared here 128 | char *getenv(); | ^~~~~~ fep_main.c:261:29: error: too many arguments to function 'getenv'; expected 0, have 1 261 | histlen = atoi (getenv ("HISTLEN")); | ^~~~~~ ~~~~~~~~~ fep_main.c:128:14: note: declared here 128 | char *getenv(); | ^~~~~~ --- fep_edit.o --- fep_edit.c:318:17: error: implicit declaration of function 'getcharacter' [-Wimplicit-function-declaration] 318 | while ((c = getcharacter ()) >= (CHAR) 0) { | ^~~~~~~~~~~~ fep_edit.c:349:18: error: too many arguments to function 'look_var'; expected 0, have 1 349 | && ! look_var ("ignore-eof") | ^~~~~~~~ ~~~~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ fep_edit.c:352:33: error: too many arguments to function 'look_var'; expected 0, have 1 352 | if (!eof_occured && look_var ("alarm-on-eof")) { | ^~~~~~~~ ~~~~~~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_main.o --- fep_main.c:266:5: error: implicit declaration of function 'init_hist' [-Wimplicit-function-declaration] 266 | init_hist (histlen); | ^~~~~~~~~ --- fep_edit.o --- fep_edit.c:354:26: error: implicit declaration of function 'alarm_on_eof' [-Wimplicit-function-declaration] 354 | status = alarm_on_eof (c); | ^~~~~~~~~~~~ fep_edit.c:357:26: error: too many arguments to function 'send_eof'; expected 0, have 1 357 | status = send_eof (c); | ^~~~~~~~ ~ fep_funcs.h:51:9: note: declared here 51 | int send_eof(); | ^~~~~~~~ --- fep_main.o --- fep_main.c:267:5: error: implicit declaration of function 'init_edit_params' [-Wimplicit-function-declaration] 267 | init_edit_params (); | ^~~~~~~~~~~~~~~~ fep_main.c:275:27: error: too many arguments to function 'look_var'; expected 0, have 1 275 | if ((size = atoi (look_var ("buffer"))) <= 0) | ^~~~~~~~ ~~~~~~~~ In file included from fep_main.c:33: fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_edit.o --- fep_edit.c:361:22: error: implicit declaration of function 'callfunc'; did you mean 'calloc'? [-Wimplicit-function-declaration] 361 | status = callfunc (curFuncTab, c); | ^~~~~~~~ | calloc --- fep_main.o --- fep_main.c:277:14: error: implicit declaration of function 'set_buffer'; did you mean 'setbuffer'? [-Wimplicit-function-declaration] 277 | if (!set_buffer (output_buffer, size)) { | ^~~~~~~~~~ | setbuffer --- fep_edit.o --- fep_edit.c:377:9: error: implicit declaration of function 'refer_history'; did you mean 'fep_history'? [-Wimplicit-function-declaration] 377 | if (refer_history () == PROCESSED) | ^~~~~~~~~~~~~ | fep_history fep_edit.c:383:24: error: too many arguments to function 'look_var'; expected 0, have 1 383 | if (!processed && !look_var ("noalias") | ^~~~~~~~ ~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ --- fep_main.o --- fep_main.c:279:13: error: implicit declaration of function 'kill_process' [-Wimplicit-function-declaration] 279 | kill_process (); | ^~~~~~~~~~~~ fep_main.c:285:21: error: implicit declaration of function 'fork' [-Wimplicit-function-declaration] 285 | child_pid = fork (); | ^~~~ fep_main.c:292:13: error: implicit declaration of function 'exec_to_command' [-Wimplicit-function-declaration] 292 | exec_to_command (commandv); | ^~~~~~~~~~~~~~~ fep_main.c:294:5: error: implicit declaration of function 'fix_signal'; did you mean 'bsd_signal'? [-Wimplicit-function-declaration] 294 | fix_signal (); | ^~~~~~~~~~ | bsd_signal fep_main.c:296:5: error: implicit declaration of function 'input_handler'; did you mean 'sa_handler'? [-Wimplicit-function-declaration] 296 | input_handler (); | ^~~~~~~~~~~~~ | sa_handler fep_main.c: At top level: --- fep_edit.o --- fep_edit.c:384:31: error: too many arguments to function 'check_alias'; expected 0, have 1 384 | && (execute_command = check_alias (CommandLine)) | ^~~~~~~~~~~ ~~~~~~~~~~~ fep_edit.c:272:29: note: declared here 272 | CHAR *execute_command, *check_alias(); | ^~~~~~~~~~~ fep_edit.c:386:13: error: too many arguments to function 'look_var'; expected 0, have 1 386 | if (look_var ("verbose")) | ^~~~~~~~ ~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ fep_edit.c:396:9: error: implicit declaration of function 'executeBuiltInFunction' [-Wimplicit-function-declaration] 396 | if (executeBuiltInFunction (execute_command, &remained) == PROCESSED) { | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c:398:13: error: implicit declaration of function 'addHistory' [-Wimplicit-function-declaration] 398 | addHistory (CommandLine); --- fep_main.o --- fep_main.c:299:1: error: return type defaults to 'int' [-Wimplicit-int] 299 | fix_signal () | ^~~~~~~~~~ fep_main.c:313:1: error: return type defaults to 'int' [-Wimplicit-int] 313 | recover_signal () | ^~~~~~~~~~~~~~ fep_main.c:321:1: error: return type defaults to 'int' [-Wimplicit-int] 321 | input_handler() | ^~~~~~~~~~~~~ fep_main.c: In function 'input_handler': fep_main.c:339:35: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ fep_main.c:339:35: note: include '' or provide a declaration of 'strlen' 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' --- fep_edit.o --- | ^~~~~~~~~~ fep_edit.c:412:14: error: implicit declaration of function 'is_empty_line' [-Wimplicit-function-declaration] 412 | if (!is_empty_line (CommandLine) || !look_var ("ignore-empty-line")) | ^~~~~~~~~~~~~ fep_edit.c:412:46: error: too many arguments to function 'look_var'; expected 0, have 1 412 | if (!is_empty_line (CommandLine) || !look_var ("ignore-empty-line")) | ^~~~~~~~ ~~~~~~~~~~~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ fep_edit.c:418:9: error: implicit declaration of function 'buf_put'; did you mean 'buf_count'? [-Wimplicit-function-declaration] 418 | buf_put (output_buffer, CommandLine); | ^~~~~~~ | buf_count fep_edit.c:424:16: error: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 424 | (void) strcat (execute_command, "\n"); | ^~~~~~ --- fep_main.o --- 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ fep_main.c:339:35: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ fep_main.c:339:35: note: include '' or provide a declaration of 'strlen' 339 | register int nbyte = max (strlen (inputline), 1); | ^~~~~~ fep_defs.h:28:27: note: in definition of macro 'max' 28 | #define max(a,b) ((a)>(b)?(a):(b)) | ^ fep_main.c:344:9: error: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 344 | write (master, inputline, nbyte); | ^~~~~ | fwrite --- fep_edit.o --- fep_edit.c:424:16: note: include '' or provide a declaration of 'strcat' fep_edit.c:424:16: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] fep_edit.c:424:16: note: include '' or provide a declaration of 'strcat' fep_edit.c: At top level: fep_edit.c:434:1: error: return type defaults to 'int' [-Wimplicit-int] 434 | callfunc (ft, c) | ^~~~~~~~ fep_edit.c: In function 'callfunc': fep_edit.c:434:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:447:18: error: too many arguments to function '*(ft + (sizetype)((long unsigned int)c * 8))'; expected 0, have 1 447 | return ((*ft[(int) c]) (c)); | ~^~~~~~~~~~~~~ ~ fep_edit.c: At top level: fep_edit.c:453:1: error: return type defaults to 'int' [-Wimplicit-int] 453 | fep_abort() | ^~~~~~~~~ fep_edit.c:462:1: error: return type defaults to 'int' [-Wimplicit-int] 462 | self_insert(c) | ^~~~~~~~~~~ --- fep_main.o --- fep_main.c: At top level: fep_main.c:406:1: error: return type defaults to 'int' [-Wimplicit-int] 406 | getcharacter() | ^~~~~~~~~~~~ fep_main.c: In function 'getcharacter': fep_main.c:445:17: error: implicit declaration of function 'buf_read'; did you mean 'fread'? [-Wimplicit-function-declaration] 445 | nbyte = buf_read (master, output_buffer); | ^~~~~~~~ | fread fep_main.c: In function 'set_buffer': fep_main.c:524:5: warning: old-style function definition [-Wold-style-definition] 524 | int set_buffer (bp, size) | ^~~~~~~~~~ fep_main.c: In function 'buf_read': fep_main.c:551:5: warning: old-style function definition [-Wold-style-definition] 551 | int buf_read (fd, bp) | ^~~~~~~~ fep_main.c:565:13: error: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 565 | nbyte = read (fd, bp->b_buf + bp->b_next, bp->b_max - bp->b_next); | ^~~~ --- fep_edit.o --- fep_edit.c: In function 'self_insert': fep_edit.c:462:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:464:1: error: number of arguments doesn't match prototype 464 | { | ^ fep_funcs.h:50:9: error: prototype declaration 50 | int self_insert(); | ^~~~~~~~~~~ fep_edit.c:470:19: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 470 | currentNull = strlen (CommandLine); | ^~~~~~ fep_edit.c:470:19: note: include '' or provide a declaration of 'strlen' fep_edit.c:470:19: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] fep_edit.c:470:19: note: include '' or provide a declaration of 'strlen' fep_edit.c:488:9: error: implicit declaration of function 'putChar'; did you mean 'putchar'? [-Wimplicit-function-declaration] 488 | putChar (c); | ^~~~~~~ | putchar --- fep_main.o --- | fread fep_main.c: At top level: fep_main.c:591:1: error: return type defaults to 'int' [-Wimplicit-int] 591 | buf_put (bp, s) | ^~~~~~~ fep_main.c: In function 'buf_put': fep_main.c:591:1: warning: old-style function definition [-Wold-style-definition] fep_main.c:598:13: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 598 | nbyte = strlen (s); | ^~~~~~ fep_main.c:598:13: note: include '' or provide a declaration of 'strlen' fep_main.c:603:9: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration] 603 | strncpy (bp->b_buf + bp->b_next, s, slen); | ^~~~~~~ fep_main.c:603:9: note: include '' or provide a declaration of 'strncpy' fep_main.c:603:9: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] fep_main.c:603:9: note: include '' or provide a declaration of 'strncpy' --- fep_edit.o --- fep_edit.c:489:5: error: implicit declaration of function 'reverse_strcpy' [-Wimplicit-function-declaration] 489 | reverse_strcpy ( | ^~~~~~~~~~~~~~ fep_edit.c:500:5: error: implicit declaration of function 'printS'; did you mean 'printf'? [-Wimplicit-function-declaration] 500 | printS (&CommandLine [CurrentPosition]); | ^~~~~~ | printf fep_edit.c:503:9: error: implicit declaration of function 'repeat' [-Wimplicit-function-declaration] 503 | repeat (BS, howlong (&CommandLine[CurrentPosition + 1], 0)); | ^~~~~~ fep_edit.c:503:21: error: implicit declaration of function 'howlong' [-Wimplicit-function-declaration] 503 | repeat (BS, howlong (&CommandLine[CurrentPosition + 1], 0)); | ^~~~~~~ fep_edit.c: At top level: fep_edit.c:512:1: error: return type defaults to 'int' [-Wimplicit-int] 512 | insert_string (s) | ^~~~~~~~~~~~~ fep_edit.c: In function 'insert_string': --- fep_main.o --- fep_main.c: At top level: fep_main.c:618:1: error: return type defaults to 'int' [-Wimplicit-int] 618 | swallow_output() | ^~~~~~~~~~~~~~ fep_main.c: In function 'swallow_output': fep_main.c:652:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 652 | return; | ^~~~~~ fep_main.c:618:1: note: declared here 618 | swallow_output() | ^~~~~~~~~~~~~~ fep_main.c: In function 'catchsig': fep_main.c:661:1: warning: old-style function definition [-Wold-style-definition] 661 | catchsig(n) | ^~~~~~~~ fep_main.c:671:13: error: implicit declaration of function 'message' [-Wimplicit-function-declaration] 671 | message ("Child has stopped!!\n"); | ^~~~~~~ fep_main.c: At top level: fep_main.c:679:1: error: return type defaults to 'int' [-Wimplicit-int] 679 | exec_to_command(argv) | ^~~~~~~~~~~~~~~ fep_main.c: In function 'exec_to_command': --- fep_edit.o --- fep_edit.c:512:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:515:29: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 515 | register int i, nbyte = strlen (s), currentNull; | ^~~~~~ fep_edit.c:515:29: note: include '' or provide a declaration of 'strlen' fep_edit.c:531:5: error: implicit declaration of function 'bcopy' [-Wimplicit-function-declaration] 531 | bcopy (s, &CommandLine[CurrentPosition], nbyte); | ^~~~~ fep_edit.c:531:5: warning: incompatible implicit declaration of built-in function 'bcopy' [-Wbuiltin-declaration-mismatch] fep_edit.c: At top level: fep_edit.c:544:1: error: return type defaults to 'int' [-Wimplicit-int] 544 | yank_from_kill_buffer () | ^~~~~~~~~~~~~~~~~~~~~ fep_edit.c:552:1: error: return type defaults to 'int' [-Wimplicit-int] 552 | mark () | ^~~~ fep_edit.c: In function 'mark': --- fep_main.o --- fep_main.c:679:1: warning: old-style function definition [-Wold-style-definition] fep_main.c:690:16: error: implicit declaration of function 'close'; did you mean 'pclose'? [-Wimplicit-function-declaration] 690 | (void) close (t); | ^~~~~ | pclose fep_main.c:693:5: error: implicit declaration of function 'get_pty_slave' [-Wimplicit-function-declaration] 693 | get_pty_slave (); | ^~~~~~~~~~~~~ fep_main.c:706:5: warning: too many arguments to built-in function 'execvp' expecting 2 [-Wbuiltin-declaration-mismatch] 706 | execvp (*argv, argv, 0); | ^~~~~~ fep_main.c: At top level: fep_main.c:712:1: error: return type defaults to 'int' [-Wimplicit-int] 712 | fix_tty() | ^~~~~~~ fep_main.c:771:1: error: return type defaults to 'int' [-Wimplicit-int] 771 | kill_process() | ^~~~~~~~~~~~ fep_main.c: In function 'terminate': fep_main.c:779:1: warning: old-style function definition [-Wold-style-definition] --- fep_edit.o --- fep_edit.c:554:5: error: implicit declaration of function 'set_mark' [-Wimplicit-function-declaration] 554 | set_mark (CurrentPosition); | ^~~~~~~~ fep_edit.c: At top level: fep_edit.c:561:1: error: return type defaults to 'int' [-Wimplicit-int] 561 | set_mark (pos) | ^~~~~~~~ fep_edit.c: In function 'set_mark': fep_edit.c:561:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:571:1: error: return type defaults to 'int' [-Wimplicit-int] 571 | delete_to_kill_buffer () | ^~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_to_kill_buffer': fep_edit.c:581:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 581 | return; | ^~~~~~ fep_edit.c:571:1: note: declared here 571 | delete_to_kill_buffer () | ^~~~~~~~~~~~~~~~~~~~~ fep_edit.c:584:16: error: implicit declaration of function 'moveto' [-Wimplicit-function-declaration] --- fep_main.o --- 779 | terminate(n) | ^~~~~~~~~ fep_main.c:791:13: error: too many arguments to function 'look_var'; expected 0, have 1 791 | if (look_var ("savehist") && (cp = look_var ("history-file"))) { | ^~~~~~~~ ~~~~~~~~~~ fep_main.c:787:41: note: declared here 787 | char *cp, *mk_home_relative(), *look_var(); | ^~~~~~~~ fep_main.c:791:44: error: too many arguments to function 'look_var'; expected 0, have 1 791 | if (look_var ("savehist") && (cp = look_var ("history-file"))) { | ^~~~~~~~ ~~~~~~~~~~~~~~ fep_main.c:787:41: note: declared here 787 | char *cp, *mk_home_relative(), *look_var(); | ^~~~~~~~ fep_main.c:793:19: error: implicit declaration of function 'lookd_var'; did you mean 'look_var'? [-Wimplicit-function-declaration] 793 | num = lookd_var ("savehist"); | ^~~~~~~~~ --- fep_edit.o --- 584 | (void) moveto (MarkPosition); | ^~~~~~ fep_edit.c:587:13: error: implicit declaration of function 'delete_next_n_character'; did you mean 'delete_next_character'? [-Wimplicit-function-declaration] 587 | return (delete_next_n_character (n)); | ^~~~~~~~~~~~~~~~~~~~~~~ | delete_next_character fep_edit.c: At top level: fep_edit.c:593:1: error: return type defaults to 'int' [-Wimplicit-int] 593 | moveto (position) | ^~~~~~ fep_edit.c: In function 'moveto': fep_edit.c:593:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:593:1: error: type of 'position' defaults to 'int' [-Wimplicit-int] fep_edit.c:597:20: error: implicit declaration of function 'backward_n_character'; did you mean 'backward_character'? [-Wimplicit-function-declaration] 597 | (void) backward_n_character (1); | ^~~~~~~~~~~~~~~~~~~~ | backward_character --- fep_main.o --- | look_var fep_main.c:794:13: error: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 794 | strcpy (buf, mk_home_relative (cp)); | ^~~~~~ fep_main.c:794:13: note: include '' or provide a declaration of 'strcpy' fep_main.c:794:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] fep_main.c:794:13: note: include '' or provide a declaration of 'strcpy' fep_main.c:794:26: error: too many arguments to function 'mk_home_relative'; expected 0, have 1 794 | strcpy (buf, mk_home_relative (cp)); | ^~~~~~~~~~~~~~~~ ~~ fep_main.c:787:20: note: declared here 787 | char *cp, *mk_home_relative(), *look_var(); | ^~~~~~~~~~~~~~~~ fep_main.c:795:13: error: implicit declaration of function 'save_history'; did you mean 'show_history'? [-Wimplicit-function-declaration] --- fep_edit.o --- fep_edit.c:605:20: error: implicit declaration of function 'forward_n_character'; did you mean 'forward_character'? [-Wimplicit-function-declaration] 605 | (void) forward_n_character (1); | ^~~~~~~~~~~~~~~~~~~ | forward_character fep_edit.c: At top level: fep_edit.c:611:1: error: return type defaults to 'int' [-Wimplicit-int] 611 | beginning_of_line() | ^~~~~~~~~~~~~~~~~ fep_edit.c:635:1: error: return type defaults to 'int' [-Wimplicit-int] 635 | end_of_line() | ^~~~~~~~~~~ fep_edit.c:654:1: error: return type defaults to 'int' [-Wimplicit-int] 654 | backward_character() | ^~~~~~~~~~~~~~~~~~ fep_edit.c:663:1: error: return type defaults to 'int' [-Wimplicit-int] 663 | backward_n_character(n) | ^~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'backward_n_character': fep_edit.c:663:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: --- fep_main.o --- 795 | save_history (buf, num); | ^~~~~~~~~~~~ | show_history fep_main.c: At top level: fep_main.c:821:1: error: return type defaults to 'int' [-Wimplicit-int] 821 | get_pty_master() | ^~~~~~~~~~~~~~ fep_main.c: In function 'get_pty_master': fep_main.c:829:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 829 | return; | ^~~~~~ fep_main.c:821:1: note: declared here 821 | get_pty_master() | ^~~~~~~~~~~~~~ fep_main.c:861:15: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch] 861 | (void)strncpy (slave_tty, ptr, sizeof(slave_tty)); | ^~~~~~~ fep_main.c:861:15: note: include '' or provide a declaration of 'strncpy' fep_main.c:927:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 927 | return; | ^~~~~~ fep_main.c:821:1: note: declared here --- fep_edit.o --- fep_edit.c:699:1: error: return type defaults to 'int' [-Wimplicit-int] 699 | backward_word () | ^~~~~~~~~~~~~ fep_edit.c: In function 'backward_word': fep_edit.c:702:13: error: implicit declaration of function 'backward_n_word'; did you mean 'backward_word'? [-Wimplicit-function-declaration] 702 | return (backward_n_word (1)); | ^~~~~~~~~~~~~~~ | backward_word fep_edit.c: At top level: fep_edit.c:708:1: error: return type defaults to 'int' [-Wimplicit-int] 708 | backward_n_word (n) | ^~~~~~~~~~~~~~~ fep_edit.c: In function 'backward_n_word': fep_edit.c:708:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:760:1: error: return type defaults to 'int' [-Wimplicit-int] 760 | backward_Word () | ^~~~~~~~~~~~~ fep_edit.c: In function 'backward_Word': fep_edit.c:763:13: error: implicit declaration of function 'backward_n_Word'; did you mean 'backward_n_word'? [-Wimplicit-function-declaration] --- fep_main.o --- 821 | get_pty_master() | ^~~~~~~~~~~~~~ fep_main.c: At top level: fep_main.c:930:1: error: return type defaults to 'int' [-Wimplicit-int] 930 | get_pty_slave() | ^~~~~~~~~~~~~ fep_main.c: In function 'get_pty_slave': fep_main.c:938:9: error: implicit declaration of function 'setsid' [-Wimplicit-function-declaration] 938 | if (setsid() == -1) | ^~~~~~ fep_main.c: At top level: fep_main.c:973:1: error: return type defaults to 'int' [-Wimplicit-int] 973 | recover_tty() | ^~~~~~~~~~~ fep_main.c:984:1: error: return type defaults to 'int' [-Wimplicit-int] 984 | suspend() | ^~~~~~~ fep_main.c: In function 'suspend': fep_main.c:990:11: error: implicit declaration of function 'getpid'; did you mean 'getpw'? [-Wimplicit-function-declaration] 990 | pid = getpid (); | ^~~~~~ | getpw fep_main.c:1010:9: error: too many arguments to function 'look_var'; expected 0, have 1 1010 | if (look_var ("auto-repaint")) --- fep_edit.o --- 763 | return (backward_n_Word (1)); | ^~~~~~~~~~~~~~~ | backward_n_word fep_edit.c: At top level: fep_edit.c:769:1: error: return type defaults to 'int' [-Wimplicit-int] 769 | backward_n_Word (n) | ^~~~~~~~~~~~~~~ fep_edit.c: In function 'backward_n_Word': fep_edit.c:769:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:819:1: error: return type defaults to 'int' [-Wimplicit-int] 819 | forward_character() | ^~~~~~~~~~~~~~~~~ fep_edit.c:828:1: error: return type defaults to 'int' [-Wimplicit-int] 828 | forward_n_character(n) | ^~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_n_character': fep_edit.c:828:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:880:1: error: return type defaults to 'int' [-Wimplicit-int] 880 | forward_word () | ^~~~~~~~~~~~ fep_edit.c: In function 'forward_word': --- fep_main.o --- | ^~~~~~~~ ~~~~~~~~~~~~~~ fep_main.c:787:41: note: declared here 787 | char *cp, *mk_home_relative(), *look_var(); | ^~~~~~~~ fep_main.c:1011:9: error: too many arguments to function 'fep_repaint'; expected 0, have 1 1011 | fep_repaint(0); | ^~~~~~~~~~~ ~ fep_funcs.h:96:9: note: declared here 96 | int fep_repaint(); | ^~~~~~~~~~~ fep_main.c: At top level: fep_main.c:1014:1: error: return type defaults to 'int' [-Wimplicit-int] 1014 | look_cmdinfo (command) | ^~~~~~~~~~~~ fep_main.c: In function 'look_cmdinfo': fep_main.c:1014:1: warning: old-style function definition [-Wold-style-definition] fep_main.c:1021:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1021 | return; | ^~~~~~ fep_main.c:1014:1: note: declared here 1014 | look_cmdinfo (command) | ^~~~~~~~~~~~ --- fep_edit.o --- fep_edit.c:882:13: error: implicit declaration of function 'forward_n_word'; did you mean 'forward_word'? [-Wimplicit-function-declaration] 882 | return (forward_n_word (1)); | ^~~~~~~~~~~~~~ | forward_word fep_edit.c: At top level: fep_edit.c:888:1: error: return type defaults to 'int' [-Wimplicit-int] 888 | forward_n_word (n) | ^~~~~~~~~~~~~~ fep_edit.c: In function 'forward_n_word': fep_edit.c:888:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:914:1: error: return type defaults to 'int' [-Wimplicit-int] 914 | forward_Word () | ^~~~~~~~~~~~ fep_edit.c: In function 'forward_Word': fep_edit.c:916:13: error: implicit declaration of function 'forward_n_Word'; did you mean 'forward_n_word'? [-Wimplicit-function-declaration] 916 | return (forward_n_Word (1)); | ^~~~~~~~~~~~~~ | forward_n_word fep_edit.c: At top level: --- fep_main.o --- fep_main.c:1025:22: error: too many arguments to function 'allocAndCopyThere'; expected 0, have 1 1025 | prompt = allocAndCopyThere (p->prompt); | ^~~~~~~~~~~~~~~~~ ~~~~~~~~~ fep_main.c:1018:11: note: declared here 1018 | char *allocAndCopyThere(); | ^~~~~~~~~~~~~~~~~ fep_main.c: At top level: fep_main.c:1034:1: error: return type defaults to 'int' [-Wimplicit-int] 1034 | usageAndExit() | ^~~~~~~~~~~~ fep_main.c: In function 'sigwinch': fep_main.c:1052:25: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration] 1052 | set_var ("crt", itoa (win.ws_row)); | ^~~~ --- fep_edit.o --- fep_edit.c:922:1: error: return type defaults to 'int' [-Wimplicit-int] 922 | forward_n_Word (n) | ^~~~~~~~~~~~~~ fep_edit.c: In function 'forward_n_Word': fep_edit.c:922:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:948:1: error: return type defaults to 'int' [-Wimplicit-int] 948 | forward_to_end_of_word () | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_word': fep_edit.c:951:13: error: implicit declaration of function 'forward_to_end_of_n_word'; did you mean 'forward_to_end_of_word'? [-Wimplicit-function-declaration] 951 | return (forward_to_end_of_n_word (1)); | ^~~~~~~~~~~~~~~~~~~~~~~~ | forward_to_end_of_word fep_edit.c: At top level: fep_edit.c:957:1: error: return type defaults to 'int' [-Wimplicit-int] 957 | forward_to_end_of_n_word (n) | ^~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_n_word': fep_edit.c:957:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:957:1: error: type of 'n' defaults to 'int' [-Wimplicit-int] fep_edit.c: At top level: fep_edit.c:984:1: error: return type defaults to 'int' [-Wimplicit-int] 984 | forward_to_end_of_Word () | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_Word': fep_edit.c:987:13: error: implicit declaration of function 'forward_to_end_of_n_Word'; did you mean 'forward_to_end_of_n_word'? [-Wimplicit-function-declaration] 987 | return (forward_to_end_of_n_Word (1)); | ^~~~~~~~~~~~~~~~~~~~~~~~ | forward_to_end_of_n_word fep_edit.c: At top level: fep_edit.c:993:1: error: return type defaults to 'int' [-Wimplicit-int] 993 | forward_to_end_of_n_Word (n) | ^~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'forward_to_end_of_n_Word': fep_edit.c:993:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:993:1: error: type of 'n' defaults to 'int' [-Wimplicit-int] fep_edit.c: At top level: fep_edit.c:1020:1: error: return type defaults to 'int' [-Wimplicit-int] 1020 | delete_previous_character() | ^~~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_character': fep_edit.c:1023:13: error: implicit declaration of function 'delete_previous_n_character'; did you mean 'delete_previous_character'? [-Wimplicit-function-declaration] 1023 | return (delete_previous_n_character (1)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ | delete_previous_character fep_edit.c: At top level: fep_edit.c:1029:1: error: return type defaults to 'int' [-Wimplicit-int] 1029 | delete_previous_n_character(n) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_n_character': fep_edit.c:1029:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:1056:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1056 | strcpy (KillBuffer, &CommandLine [CurrentPosition]); | ^~~~~~ fep_edit.c:1056:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1076:1: error: return type defaults to 'int' [-Wimplicit-int] 1076 | delete_previous_word() | ^~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_word': fep_edit.c:1079:13: error: implicit declaration of function 'delete_previous_n_word'; did you mean 'delete_previous_word'? [-Wimplicit-function-declaration] 1079 | return (delete_previous_n_word (1)); | ^~~~~~~~~~~~~~~~~~~~~~ | delete_previous_word fep_edit.c: At top level: fep_edit.c:1085:1: error: return type defaults to 'int' [-Wimplicit-int] 1085 | delete_previous_n_word(n) | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_n_word': fep_edit.c:1085:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1137:1: error: return type defaults to 'int' [-Wimplicit-int] 1137 | delete_previous_Word() | ^~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_Word': fep_edit.c:1140:13: error: implicit declaration of function 'delete_previous_n_Word'; did you mean 'delete_previous_n_word'? [-Wimplicit-function-declaration] 1140 | return (delete_previous_n_Word (1)); | ^~~~~~~~~~~~~~~~~~~~~~ | delete_previous_n_word fep_edit.c: At top level: fep_edit.c:1146:1: error: return type defaults to 'int' [-Wimplicit-int] 1146 | delete_previous_n_Word(n) | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_previous_n_Word': fep_edit.c:1146:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1198:1: error: return type defaults to 'int' [-Wimplicit-int] 1198 | delete_next_character () | ^~~~~~~~~~~~~~~~~~~~~ fep_edit.c:1207:1: error: return type defaults to 'int' [-Wimplicit-int] 1207 | delete_next_n_character (n) | ^~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_next_n_character': fep_edit.c:1207:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:1213:9: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1213 | if (strlen (&CommandLine [CurrentPosition]) < n) { | ^~~~~~ fep_edit.c:1213:9: note: include '' or provide a declaration of 'strlen' fep_edit.c:1237:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1237 | strcpy (KillBuffer, CommandLine + CurrentPosition); | ^~~~~~ fep_edit.c:1237:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1257:1: error: return type defaults to 'int' [-Wimplicit-int] 1257 | delete_next_word () | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_next_word': fep_edit.c:1259:13: error: implicit declaration of function 'delete_next_n_word'; did you mean 'delete_next_word'? [-Wimplicit-function-declaration] 1259 | return (delete_next_n_word (1)); | ^~~~~~~~~~~~~~~~~~ | delete_next_word fep_edit.c: At top level: fep_edit.c:1265:1: error: return type defaults to 'int' [-Wimplicit-int] 1265 | delete_next_n_word (n) | ^~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_next_n_word': fep_edit.c:1265:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1291:1: error: return type defaults to 'int' [-Wimplicit-int] 1291 | delete_next_Word () | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_next_Word': fep_edit.c:1293:13: error: implicit declaration of function 'delete_next_n_Word'; did you mean 'delete_next_n_word'? [-Wimplicit-function-declaration] 1293 | return (delete_next_n_Word (1)); | ^~~~~~~~~~~~~~~~~~ | delete_next_n_word fep_edit.c: At top level: fep_edit.c:1299:1: error: return type defaults to 'int' [-Wimplicit-int] 1299 | delete_next_n_Word (n) | ^~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'delete_next_n_Word': fep_edit.c:1299:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1325:1: error: return type defaults to 'int' [-Wimplicit-int] 1325 | delete_line() | ^~~~~~~~~~~ fep_edit.c: In function 'delete_line': fep_edit.c:1338:9: error: implicit declaration of function 'repeat_string'; did you mean 'insert_string'? [-Wimplicit-function-declaration] 1338 | repeat_string ("\b \b", len); | ^~~~~~~~~~~~~ | insert_string fep_edit.c:1351:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1351 | strcpy (KillBuffer, CommandLine); | ^~~~~~ fep_edit.c:1351:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1360:1: error: return type defaults to 'int' [-Wimplicit-int] 1360 | kill_to_top_of_line() | ^~~~~~~~~~~~~~~~~~~ fep_edit.c:1371:1: error: return type defaults to 'int' [-Wimplicit-int] 1371 | kill_to_end_of_line() | ^~~~~~~~~~~~~~~~~~~ fep_edit.c: In function 'kill_to_end_of_line': fep_edit.c:1389:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1389 | strcpy (KillBuffer, CommandLine + CurrentPosition); | ^~~~~~ fep_edit.c:1389:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c: At top level: fep_edit.c:1397:1: error: return type defaults to 'int' [-Wimplicit-int] 1397 | insert_tab() | ^~~~~~~~~~ fep_edit.c: In function 'insert_tab': fep_edit.c:1401:13: error: too many arguments to function 'self_insert'; expected 0, have 1 1401 | return (self_insert ('\t')); | ^~~~~~~~~~~ ~~~~ fep_edit.c:462:1: note: declared here 462 | self_insert(c) | ^~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1407:1: error: return type defaults to 'int' [-Wimplicit-int] 1407 | new_line() | ^~~~~~~~ fep_edit.c:1421:1: error: return type defaults to 'int' [-Wimplicit-int] 1421 | is_tol() | ^~~~~~ fep_edit.c:1429:1: error: return type defaults to 'int' [-Wimplicit-int] 1429 | is_eol() | ^~~~~~ fep_edit.c:1437:1: error: return type defaults to 'int' [-Wimplicit-int] 1437 | refer_history() | ^~~~~~~~~~~~~ fep_edit.c: In function 'refer_history': fep_edit.c:1445:15: error: too many arguments to function 'historyExtract'; expected 0, have 1 1445 | if (his = historyExtract (CommandLine)) { | ^~~~~~~~~~~~~~ ~~~~~~~~~~~ fep_edit.c:1439:13: note: declared here 1439 | char *historyExtract (); | ^~~~~~~~~~~~~~ fep_edit.c:1446:16: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1446 | (void) strcpy (CommandLine, his); | ^~~~~~ fep_edit.c:1446:16: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1447:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1447 | CurrentPosition = strlen (CommandLine); | ^~~~~~ fep_edit.c:1447:27: note: include '' or provide a declaration of 'strlen' fep_edit.c:1452:16: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1452 | (void) strcpy (CommandLine, ""); | ^~~~~~ fep_edit.c:1452:16: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1456:5: error: implicit declaration of function 'print_com_line' [-Wimplicit-function-declaration] 1456 | print_com_line (); | ^~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1463:1: error: return type defaults to 'int' [-Wimplicit-int] 1463 | search_reverse () | ^~~~~~~~~~~~~~ fep_edit.c: In function 'search_reverse': fep_edit.c:1465:13: error: implicit declaration of function 'search_history' [-Wimplicit-function-declaration] 1465 | return (search_history (REVERSE)); | ^~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1468:1: error: return type defaults to 'int' [-Wimplicit-int] 1468 | search_forward () | ^~~~~~~~~~~~~~ fep_edit.c:1473:1: error: return type defaults to 'int' [-Wimplicit-int] 1473 | search_history (direct) | ^~~~~~~~~~~~~~ fep_edit.c: In function 'search_history': fep_edit.c:1473:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:1485:16: error: too many arguments to function 'func'; expected 0, have 1 1485 | if (his = (*func) (0)) { | ~^~~~~~ ~ In file included from fep_edit.c:31: fep_defs.h:26:26: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_edit.c:1486:13: note: in expansion of macro 'eq' 1486 | if (eq (his, CommandLine)) | ^~ fep_defs.h:26:26: note: include '' or provide a declaration of 'strcmp' 26 | #define eq(a,b) (strcmp(a,b) == 0) | ^~~~~~ fep_edit.c:1486:13: note: in expansion of macro 'eq' 1486 | if (eq (his, CommandLine)) | ^~ fep_edit.c:1491:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1491 | CurrentPosition = strlen (CommandLine); | ^~~~~~ fep_edit.c:1491:27: note: include '' or provide a declaration of 'strlen' fep_edit.c:1496:13: error: too many arguments to function 'look_var'; expected 0, have 1 1496 | if (look_var ("verbose")) { | ^~~~~~~~ ~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ fep_edit.c:1499:23: error: too many arguments to function 'look_var'; expected 0, have 1 1499 | if ((cp = look_var ("search-string")) == NULL) | ^~~~~~~~ ~~~~~~~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ fep_edit.c:1501:20: error: implicit declaration of function 'clear_edit_line' [-Wimplicit-function-declaration] 1501 | (void) clear_edit_line (); | ^~~~~~~~~~~~~~~ fep_edit.c:1503:20: error: implicit declaration of function 'recover_edit_line' [-Wimplicit-function-declaration] 1503 | (void) recover_edit_line (1); | ^~~~~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1514:1: error: return type defaults to 'int' [-Wimplicit-int] 1514 | insert_and_flush(c) | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'insert_and_flush': fep_edit.c:1514:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:1516:1: error: number of arguments doesn't match prototype 1516 | { | ^ fep_funcs.h:34:9: error: prototype declaration 34 | int insert_and_flush(); | ^~~~~~~~~~~~~~~~ fep_edit.c:1517:12: error: too many arguments to function 'self_insert'; expected 0, have 1 1517 | (void) self_insert (c); | ^~~~~~~~~~~ ~ fep_edit.c:462:1: note: declared here 462 | self_insert(c) | ^~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1525:1: error: return type defaults to 'int' [-Wimplicit-int] 1525 | send_eof() | ^~~~~~~~ fep_edit.c: In function 'send_eof': fep_edit.c:1533:12: error: too many arguments to function 'self_insert'; expected 0, have 1 1533 | (void) self_insert (c); | ^~~~~~~~~~~ ~ fep_edit.c:462:1: note: declared here 462 | self_insert(c) | ^~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1544:1: error: return type defaults to 'int' [-Wimplicit-int] 1544 | alarm_on_eof () | ^~~~~~~~~~~~ fep_edit.c:1556:1: error: return type defaults to 'int' [-Wimplicit-int] 1556 | clear_screen() | ^~~~~~~~~~~~ fep_edit.c:1576:1: error: return type defaults to 'int' [-Wimplicit-int] 1576 | next_history() | ^~~~~~~~~~~~ fep_edit.c: In function 'next_history': fep_edit.c:1578:13: error: implicit declaration of function 'serv_history'; did you mean 'search_history'? [-Wimplicit-function-declaration] 1578 | return (serv_history (HOP_REPLACE, HDIR_NEXT)); | ^~~~~~~~~~~~ | search_history fep_edit.c: At top level: fep_edit.c:1584:1: error: return type defaults to 'int' [-Wimplicit-int] 1584 | previous_history() | ^~~~~~~~~~~~~~~~ fep_edit.c:1592:1: error: return type defaults to 'int' [-Wimplicit-int] 1592 | insert_current_history() | ^~~~~~~~~~~~~~~~~~~~~~ fep_edit.c:1600:1: error: return type defaults to 'int' [-Wimplicit-int] 1600 | insert_next_history() | ^~~~~~~~~~~~~~~~~~~ fep_edit.c:1608:1: error: return type defaults to 'int' [-Wimplicit-int] 1608 | insert_previous_history() | ^~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c:1616:1: error: return type defaults to 'int' [-Wimplicit-int] 1616 | serv_history(op, dir) | ^~~~~~~~~~~~ fep_edit.c: In function 'serv_history': fep_edit.c:1616:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1645:1: error: return type defaults to 'int' [-Wimplicit-int] 1645 | show_history() | ^~~~~~~~~~~~ fep_edit.c: In function 'show_history': fep_edit.c:1649:5: error: implicit declaration of function 'hist_showHistory' [-Wimplicit-function-declaration] 1649 | hist_showHistory (lookd_var ("showhist")); | ^~~~~~~~~~~~~~~~ fep_edit.c:1649:23: error: implicit declaration of function 'lookd_var'; did you mean 'look_var'? [-Wimplicit-function-declaration] 1649 | hist_showHistory (lookd_var ("showhist")); | ^~~~~~~~~ | look_var fep_edit.c: At top level: fep_edit.c:1656:1: error: return type defaults to 'int' [-Wimplicit-int] 1656 | ignore() | ^~~~~~ fep_edit.c:1664:1: error: return type defaults to 'int' [-Wimplicit-int] 1664 | literal_next() | ^~~~~~~~~~~~ fep_edit.c: In function 'literal_next': fep_edit.c:1667:13: error: too many arguments to function 'self_insert'; expected 0, have 1 1667 | return (self_insert (getcharacter ())); | ^~~~~~~~~~~ ~~~~~~~~~~~~~~~ fep_edit.c:462:1: note: declared here 462 | self_insert(c) | ^~~~~~~~~~~ --- fep_main.o --- *** [fep_main.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/misc/fep/work --- fep_edit.o --- fep_edit.c: At top level: fep_edit.c:1673:1: error: return type defaults to 'int' [-Wimplicit-int] 1673 | reprint() | ^~~~~~~ fep_edit.c:1684:1: error: return type defaults to 'int' [-Wimplicit-int] 1684 | print_com_line() | ^~~~~~~~~~~~~~ fep_edit.c:1697:1: error: return type defaults to 'int' [-Wimplicit-int] 1697 | howlong(s, n) | ^~~~~~~ fep_edit.c: In function 'howlong': fep_edit.c:1697:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1718:1: error: return type defaults to 'int' [-Wimplicit-int] 1718 | repeat(c, n) | ^~~~~~ fep_edit.c: In function 'repeat': fep_edit.c:1718:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1729:1: error: return type defaults to 'int' [-Wimplicit-int] 1729 | repeat_string(s, n) | ^~~~~~~~~~~~~ fep_edit.c: In function 'repeat_string': fep_edit.c:1729:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c: At top level: fep_edit.c:1740:1: error: return type defaults to 'int' [-Wimplicit-int] 1740 | expand_file_name () | ^~~~~~~~~~~~~~~~ fep_edit.c: In function 'expand_file_name': fep_edit.c:1752:11: warning: conflicting types for built-in function 'index'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 1752 | CHAR *index(), *rindex(); | ^~~~~ fep_edit.c:1752:21: warning: conflicting types for built-in function 'rindex'; expected 'char *(const char *, int)' [-Wbuiltin-declaration-mismatch] 1752 | CHAR *index(), *rindex(); | ^~~~~~ fep_edit.c:1756:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1756 | strcpy (line, CommandLine); | ^~~~~~ fep_edit.c:1756:5: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1758:13: error: too many arguments to function 'index'; expected 0, have 2 1758 | if (index (delimiters, *(cp - 1))) | ^~~~~ ~~~~~~~~~~ fep_edit.c:1752:11: note: declared here 1752 | CHAR *index(), *rindex(); | ^~~~~ fep_edit.c:1762:9: error: implicit declaration of function 'any' [-Wimplicit-function-declaration] 1762 | if (any ('/', cp)) { | ^~~ fep_edit.c:1764:11: error: too many arguments to function 'rindex'; expected 0, have 2 1764 | *(rindex (dir, '/') + 1) = '\0'; | ^~~~~~ ~~~ fep_edit.c:1752:21: note: declared here 1752 | CHAR *index(), *rindex(); | ^~~~~~ fep_edit.c:1765:24: error: too many arguments to function 'rindex'; expected 0, have 2 1765 | cp = (CHAR *) (rindex (cp, '/') + 1); | ^~~~~~ ~~ fep_edit.c:1752:21: note: declared here 1752 | CHAR *index(), *rindex(); | ^~~~~~ fep_edit.c:1770:17: error: too many arguments to function 'x_opendir'; expected 0, have 1 1770 | if ((dirp = x_opendir (dir)) == NULL) { | ^~~~~~~~~ ~~~ fep_edit.c:1747:17: note: declared here 1747 | DIR *dirp, *x_opendir(); | ^~~~~~~~~ fep_edit.c:1783:13: error: implicit declaration of function 'prefix'; did you mean 'profil'? [-Wimplicit-function-declaration] 1783 | if (prefix (cp, dp->d_name)) { | ^~~~~~ | profil fep_edit.c:1789:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1789 | fcp = malloc (strlen (dp->d_name) + 1); | ^~~~~~ fep_edit.c:1789:27: note: include '' or provide a declaration of 'strlen' fep_edit.c:1803:33: error: too many arguments to function 'look_var'; expected 0, have 1 1803 | if (*start_expand == '~' && look_var ("expand-tilde")) { | ^~~~~~~~ ~~~~~~~~~~~~~~ fep_funcs.h:114:7: note: declared here 114 | char *look_var(); | ^~~~~~~~ fep_edit.c:1807:13: error: too many arguments to function 'x_dirname'; expected 0, have 1 1807 | p = x_dirname (buf); | ^~~~~~~~~ ~~~ fep_edit.c:1743:11: note: declared here 1743 | char *x_dirname(); | ^~~~~~~~~ fep_edit.c:1811:35: error: too many arguments to function 'x_dirname'; expected 0, have 1 1811 | (void) insert_string (x_dirname (buf)); | ^~~~~~~~~ ~~~ fep_edit.c:1743:11: note: declared here 1743 | char *x_dirname(); | ^~~~~~~~~ fep_edit.c:1825:49: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1825 | (void) insert_string (fileList[0] + strlen (cp)); | ^~~~~~ fep_edit.c:1825:49: note: include '' or provide a declaration of 'strlen' fep_edit.c: At top level: fep_edit.c:1860:1: error: return type defaults to 'int' [-Wimplicit-int] 1860 | list_file_name () | ^~~~~~~~~~~~~~ fep_edit.c: In function 'list_file_name': fep_edit.c:1869:24: error: too many arguments to function 'index'; expected 0, have 2 1869 | for (cp = (CHAR *) index (CommandLine, '\0'); cp > CommandLine ; --cp) { | ^~~~~ ~~~~~~~~~~~ fep_edit.c:1865:11: note: declared here 1865 | CHAR *index(), *rindex(); | ^~~~~ fep_edit.c:1870:13: error: too many arguments to function 'index'; expected 0, have 2 1870 | if (index (delimiters, *(cp - 1))) { | ^~~~~ ~~~~~~~~~~ fep_edit.c:1865:11: note: declared here 1865 | CHAR *index(), *rindex(); | ^~~~~ fep_edit.c:1894:16: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1894 | (void) strcpy (dir, cp); | ^~~~~~ fep_edit.c:1894:16: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1895:11: error: too many arguments to function 'rindex'; expected 0, have 2 1895 | *(rindex (dir, '/') + 1) = '\0'; | ^~~~~~ ~~~ fep_edit.c:1865:21: note: declared here 1865 | CHAR *index(), *rindex(); | ^~~~~~ fep_edit.c:1896:24: error: too many arguments to function 'rindex'; expected 0, have 2 1896 | cp = (CHAR *) (rindex (cp, '/') + 1); | ^~~~~~ ~~ fep_edit.c:1865:21: note: declared here 1865 | CHAR *index(), *rindex(); | ^~~~~~ fep_edit.c:1899:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1899 | strcpy (dir, "."); | ^~~~~~ fep_edit.c:1899:9: note: include '' or provide a declaration of 'strcpy' fep_edit.c:1902:17: error: too many arguments to function 'x_opendir'; expected 0, have 1 1902 | if ((dirp = x_opendir (dir)) == NULL) { | ^~~~~~~~~ ~~~ fep_edit.c:1864:17: note: declared here 1864 | DIR *dirp, *x_opendir(); | ^~~~~~~~~ fep_edit.c:1908:5: error: implicit declaration of function 'ls'; did you mean 'labs'? [-Wimplicit-function-declaration] 1908 | ls (dirp, cp); | ^~ | labs fep_edit.c: At top level: fep_edit.c:1917:1: error: return type defaults to 'int' [-Wimplicit-int] 1917 | clear_edit_line () | ^~~~~~~~~~~~~~~ fep_edit.c: In function 'clear_edit_line': fep_edit.c:1921:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1921 | return; | ^~~~~~ fep_edit.c:1917:1: note: declared here 1917 | clear_edit_line () | ^~~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1928:1: error: return type defaults to 'int' [-Wimplicit-int] 1928 | recover_edit_line (put_prompt) | ^~~~~~~~~~~~~~~~~ fep_edit.c: In function 'recover_edit_line': fep_edit.c:1928:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:1933:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1933 | return; | ^~~~~~ fep_edit.c:1928:1: note: declared here 1928 | recover_edit_line (put_prompt) | ^~~~~~~~~~~~~~~~~ fep_edit.c:1936:9: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 1936 | return; | ^~~~~~ fep_edit.c:1928:1: note: declared here 1928 | recover_edit_line (put_prompt) | ^~~~~~~~~~~~~~~~~ fep_edit.c: At top level: fep_edit.c:1949:1: error: return type defaults to 'int' [-Wimplicit-int] 1949 | ls (dirp, prefixstring) | ^~ fep_edit.c: In function 'ls': fep_edit.c:1949:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:1980:27: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 1980 | fcp = malloc (strlen (dp->d_name) + 1); | ^~~~~~ fep_edit.c:1980:27: note: include '' or provide a declaration of 'strlen' fep_edit.c:1988:13: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 1988 | strcpy (fcp, dp->d_name); | ^~~~~~ fep_edit.c:1988:13: note: include '' or provide a declaration of 'strcpy' fep_edit.c:2000:42: error: passing argument 4 of 'qsort' from incompatible pointer type [-Wincompatible-pointer-types] 2000 | qsort (fileList, i, sizeof (char *), scmp); | ^~~~ | | | int (*)(void) /usr/include/iso/stdlib_iso.h:147:43: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(void)' 147 | extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fep_edit.c:1963:9: note: 'scmp' declared here 1963 | int scmp(); | ^~~~ fep_edit.c:2026:5: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch] 2026 | return; | ^~~~~~ fep_edit.c:1949:1: note: declared here 1949 | ls (dirp, prefixstring) | ^~ fep_edit.c: At top level: fep_edit.c:2074:1: error: return type defaults to 'int' [-Wimplicit-int] 2074 | bind_key (ft, func, s, dfunc) | ^~~~~~~~ fep_edit.c: In function 'bind_key': fep_edit.c:2074:1: warning: old-style function definition [-Wold-style-definition] fep_edit.c:2084:9: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 2084 | strcpy (&tmps[1], &s[3]); | ^~~~~~ fep_edit.c:2084:9: note: include '' or provide a declaration of 'strcpy' *** [fep_edit.o] Error code 1 bmake: stopped making "all" in /home/pbulk/work/misc/fep/work bmake: 2 errors bmake: stopped making "all" in /home/pbulk/work/misc/fep/work *** Error code 2 Stop. bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/fep *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/misc/fep