aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c4
-rw-r--r--editors/cmp.c2
-rw-r--r--editors/diff.c6
-rw-r--r--editors/ed.c2
-rw-r--r--editors/patch.c2
-rw-r--r--editors/sed.c2
-rw-r--r--editors/vi.c6
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);
499static var *evaluate(node *, var *); 499static var *evaluate(node *, var *);
500static rstream *next_input_file(void); 500static rstream *next_input_file(void);
501static int fmt_num(char *, int, const char *, double, int); 501static int fmt_num(char *, int, const char *, double, int);
502static int awk_exit(int) ATTRIBUTE_NORETURN; 502static 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
524static void syntax_error(const char *const message) ATTRIBUTE_NORETURN; 524static void syntax_error(const char *const message) NORETURN;
525static void syntax_error(const char *const message) 525static 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
35int cmp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 35int cmp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
36int cmp_main(int argc ATTRIBUTE_UNUSED, char **argv) 36int 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. */
1166static int FAST_FUNC add_to_dirlist(const char *filename, 1166static 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
1273int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 1273int diff_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
1274int diff_main(int argc ATTRIBUTE_UNUSED, char **argv) 1274int 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
91int ed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 91int ed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
92int ed_main(int argc ATTRIBUTE_UNUSED, char **argv) 92int 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
68int patch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 68int patch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
69int patch_main(int argc ATTRIBUTE_UNUSED, char **argv) 69int 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
1235int sed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 1235int sed_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
1236int sed_main(int argc ATTRIBUTE_UNUSED, char **argv) 1236int 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
2144static void winch_sig(int sig ATTRIBUTE_UNUSED) 2144static 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 -------------------
2158static void cont_sig(int sig ATTRIBUTE_UNUSED) 2158static 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 -------------------
2170static void suspend_sig(int sig ATTRIBUTE_UNUSED) 2170static 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