diff options
Diffstat (limited to 'editors')
-rw-r--r-- | editors/awk.c | 4 | ||||
-rw-r--r-- | editors/cmp.c | 2 | ||||
-rw-r--r-- | editors/diff.c | 6 | ||||
-rw-r--r-- | editors/ed.c | 2 | ||||
-rw-r--r-- | editors/patch.c | 2 | ||||
-rw-r--r-- | editors/sed.c | 2 | ||||
-rw-r--r-- | editors/vi.c | 6 |
7 files changed, 12 insertions, 12 deletions
diff --git a/editors/awk.c b/editors/awk.c index aac40aa93..2af39880e 100644 --- a/editors/awk.c +++ b/editors/awk.c | |||
@@ -499,7 +499,7 @@ static void chain_group(void); | |||
499 | static var *evaluate(node *, var *); | 499 | static var *evaluate(node *, var *); |
500 | static rstream *next_input_file(void); | 500 | static rstream *next_input_file(void); |
501 | static int fmt_num(char *, int, const char *, double, int); | 501 | static int fmt_num(char *, int, const char *, double, int); |
502 | static int awk_exit(int) ATTRIBUTE_NORETURN; | 502 | static int awk_exit(int) NORETURN; |
503 | 503 | ||
504 | /* ---- error handling ---- */ | 504 | /* ---- error handling ---- */ |
505 | 505 | ||
@@ -521,7 +521,7 @@ static void zero_out_var(var * vp) | |||
521 | memset(vp, 0, sizeof(*vp)); | 521 | memset(vp, 0, sizeof(*vp)); |
522 | } | 522 | } |
523 | 523 | ||
524 | static void syntax_error(const char *const message) ATTRIBUTE_NORETURN; | 524 | static void syntax_error(const char *const message) NORETURN; |
525 | static void syntax_error(const char *const message) | 525 | static void syntax_error(const char *const message) |
526 | { | 526 | { |
527 | bb_error_msg_and_die("%s:%i: %s", g_progname, g_lineno, message); | 527 | bb_error_msg_and_die("%s:%i: %s", g_progname, g_lineno, message); |
diff --git a/editors/cmp.c b/editors/cmp.c index b211adf9f..2e98e6e24 100644 --- a/editors/cmp.c +++ b/editors/cmp.c | |||
@@ -33,7 +33,7 @@ static const char opt_chars[] ALIGN1 = "sl"; | |||
33 | #define CMP_OPT_l (1<<1) | 33 | #define CMP_OPT_l (1<<1) |
34 | 34 | ||
35 | int cmp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 35 | int cmp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
36 | int cmp_main(int argc ATTRIBUTE_UNUSED, char **argv) | 36 | int cmp_main(int argc UNUSED_PARAM, char **argv) |
37 | { | 37 | { |
38 | FILE *fp1, *fp2, *outfile = stdout; | 38 | FILE *fp1, *fp2, *outfile = stdout; |
39 | const char *filename1, *filename2 = "-"; | 39 | const char *filename1, *filename2 = "-"; |
diff --git a/editors/diff.c b/editors/diff.c index d7eccfbba..570c4c490 100644 --- a/editors/diff.c +++ b/editors/diff.c | |||
@@ -1164,9 +1164,9 @@ static void do_diff(char *dir1, char *path1, char *dir2, char *path2) | |||
1164 | #if ENABLE_FEATURE_DIFF_DIR | 1164 | #if ENABLE_FEATURE_DIFF_DIR |
1165 | /* This function adds a filename to dl, the directory listing. */ | 1165 | /* This function adds a filename to dl, the directory listing. */ |
1166 | static int FAST_FUNC add_to_dirlist(const char *filename, | 1166 | static int FAST_FUNC add_to_dirlist(const char *filename, |
1167 | struct stat *sb ATTRIBUTE_UNUSED, | 1167 | struct stat *sb UNUSED_PARAM, |
1168 | void *userdata, | 1168 | void *userdata, |
1169 | int depth ATTRIBUTE_UNUSED) | 1169 | int depth UNUSED_PARAM) |
1170 | { | 1170 | { |
1171 | /* +2: with space for eventual trailing NULL */ | 1171 | /* +2: with space for eventual trailing NULL */ |
1172 | dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0])); | 1172 | dl = xrealloc(dl, (dl_count+2) * sizeof(dl[0])); |
@@ -1271,7 +1271,7 @@ static void diffdir(char *p1, char *p2) | |||
1271 | 1271 | ||
1272 | 1272 | ||
1273 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 1273 | int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
1274 | int diff_main(int argc ATTRIBUTE_UNUSED, char **argv) | 1274 | int diff_main(int argc UNUSED_PARAM, char **argv) |
1275 | { | 1275 | { |
1276 | int gotstdin = 0; | 1276 | int gotstdin = 0; |
1277 | char *f1, *f2; | 1277 | char *f1, *f2; |
diff --git a/editors/ed.c b/editors/ed.c index 0961cc38e..9084a17fb 100644 --- a/editors/ed.c +++ b/editors/ed.c | |||
@@ -89,7 +89,7 @@ static char *skip_blank(const char *cp) | |||
89 | 89 | ||
90 | 90 | ||
91 | int ed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 91 | int ed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
92 | int ed_main(int argc ATTRIBUTE_UNUSED, char **argv) | 92 | int ed_main(int argc UNUSED_PARAM, char **argv) |
93 | { | 93 | { |
94 | INIT_G(); | 94 | INIT_G(); |
95 | 95 | ||
diff --git a/editors/patch.c b/editors/patch.c index 2bc594d16..d5f6df275 100644 --- a/editors/patch.c +++ b/editors/patch.c | |||
@@ -66,7 +66,7 @@ static char *extract_filename(char *line, int patch_level, const char *pat) | |||
66 | } | 66 | } |
67 | 67 | ||
68 | int patch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 68 | int patch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
69 | int patch_main(int argc ATTRIBUTE_UNUSED, char **argv) | 69 | int patch_main(int argc UNUSED_PARAM, char **argv) |
70 | { | 70 | { |
71 | struct stat saved_stat; | 71 | struct stat saved_stat; |
72 | char *patch_line; | 72 | char *patch_line; |
diff --git a/editors/sed.c b/editors/sed.c index 81cc19580..88bae785c 100644 --- a/editors/sed.c +++ b/editors/sed.c | |||
@@ -1233,7 +1233,7 @@ static void add_cmd_block(char *cmdstr) | |||
1233 | } | 1233 | } |
1234 | 1234 | ||
1235 | int sed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 1235 | int sed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
1236 | int sed_main(int argc ATTRIBUTE_UNUSED, char **argv) | 1236 | int sed_main(int argc UNUSED_PARAM, char **argv) |
1237 | { | 1237 | { |
1238 | enum { | 1238 | enum { |
1239 | OPT_in_place = 1 << 0, | 1239 | OPT_in_place = 1 << 0, |
diff --git a/editors/vi.c b/editors/vi.c index 81baa890f..1f1d3ca39 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -2141,7 +2141,7 @@ static void cookmode(void) | |||
2141 | 2141 | ||
2142 | //----- Come here when we get a window resize signal --------- | 2142 | //----- Come here when we get a window resize signal --------- |
2143 | #if ENABLE_FEATURE_VI_USE_SIGNALS | 2143 | #if ENABLE_FEATURE_VI_USE_SIGNALS |
2144 | static void winch_sig(int sig ATTRIBUTE_UNUSED) | 2144 | static void winch_sig(int sig UNUSED_PARAM) |
2145 | { | 2145 | { |
2146 | // FIXME: do it in main loop!!! | 2146 | // FIXME: do it in main loop!!! |
2147 | signal(SIGWINCH, winch_sig); | 2147 | signal(SIGWINCH, winch_sig); |
@@ -2155,7 +2155,7 @@ static void winch_sig(int sig ATTRIBUTE_UNUSED) | |||
2155 | } | 2155 | } |
2156 | 2156 | ||
2157 | //----- Come here when we get a continue signal ------------------- | 2157 | //----- Come here when we get a continue signal ------------------- |
2158 | static void cont_sig(int sig ATTRIBUTE_UNUSED) | 2158 | static void cont_sig(int sig UNUSED_PARAM) |
2159 | { | 2159 | { |
2160 | rawmode(); // terminal to "raw" | 2160 | rawmode(); // terminal to "raw" |
2161 | last_status_cksum = 0; // force status update | 2161 | last_status_cksum = 0; // force status update |
@@ -2167,7 +2167,7 @@ static void cont_sig(int sig ATTRIBUTE_UNUSED) | |||
2167 | } | 2167 | } |
2168 | 2168 | ||
2169 | //----- Come here when we get a Suspend signal ------------------- | 2169 | //----- Come here when we get a Suspend signal ------------------- |
2170 | static void suspend_sig(int sig ATTRIBUTE_UNUSED) | 2170 | static void suspend_sig(int sig UNUSED_PARAM) |
2171 | { | 2171 | { |
2172 | place_cursor(rows - 1, 0, FALSE); // go to bottom of screen | 2172 | place_cursor(rows - 1, 0, FALSE); // go to bottom of screen |
2173 | clear_to_eol(); // Erase to end of line | 2173 | clear_to_eol(); // Erase to end of line |