aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-30 13:41:53 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-30 13:41:53 +0000
commit21d8748d11ccd9c56bc1f6a1cd9876395e2985d0 (patch)
treea65da96dce7007bb586365ed87436a86b1c82c44
parentf9f7eea839d8f2f0380d2529e3979104880ec96c (diff)
downloadbusybox-w32-21d8748d11ccd9c56bc1f6a1cd9876395e2985d0.tar.gz
busybox-w32-21d8748d11ccd9c56bc1f6a1cd9876395e2985d0.tar.bz2
busybox-w32-21d8748d11ccd9c56bc1f6a1cd9876395e2985d0.zip
removed warning "comparison between signed and unsigned". Added ATTRIBUTE_UNUSED. Whitespace
git-svn-id: svn://busybox.net/trunk/busybox@13708 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/vi.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/editors/vi.c b/editors/vi.c
index fddd0a9ea..553561b21 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2135,7 +2135,7 @@ static void cookmode(void)
2135 2135
2136//----- Come here when we get a window resize signal --------- 2136//----- Come here when we get a window resize signal ---------
2137#ifdef CONFIG_FEATURE_VI_USE_SIGNALS 2137#ifdef CONFIG_FEATURE_VI_USE_SIGNALS
2138static void winch_sig(int sig) 2138static void winch_sig(int sig ATTRIBUTE_UNUSED)
2139{ 2139{
2140 signal(SIGWINCH, winch_sig); 2140 signal(SIGWINCH, winch_sig);
2141#ifdef CONFIG_FEATURE_VI_WIN_RESIZE 2141#ifdef CONFIG_FEATURE_VI_WIN_RESIZE
@@ -2146,7 +2146,7 @@ static void winch_sig(int sig)
2146} 2146}
2147 2147
2148//----- Come here when we get a continue signal ------------------- 2148//----- Come here when we get a continue signal -------------------
2149static void cont_sig(int sig) 2149static void cont_sig(int sig ATTRIBUTE_UNUSED)
2150{ 2150{
2151 rawmode(); // terminal to "raw" 2151 rawmode(); // terminal to "raw"
2152 last_status_cksum = 0; // force status update 2152 last_status_cksum = 0; // force status update
@@ -2158,7 +2158,7 @@ static void cont_sig(int sig)
2158} 2158}
2159 2159
2160//----- Come here when we get a Suspend signal ------------------- 2160//----- Come here when we get a Suspend signal -------------------
2161static void suspend_sig(int sig) 2161static void suspend_sig(int sig ATTRIBUTE_UNUSED)
2162{ 2162{
2163 place_cursor(rows - 1, 0, FALSE); // go to bottom of screen 2163 place_cursor(rows - 1, 0, FALSE); // go to bottom of screen
2164 clear_to_eol(); // Erase to end of line 2164 clear_to_eol(); // Erase to end of line
@@ -2177,7 +2177,7 @@ static void catch_sig(int sig)
2177 signal(SIGTERM, catch_sig); 2177 signal(SIGTERM, catch_sig);
2178 signal(SIGALRM, catch_sig); 2178 signal(SIGALRM, catch_sig);
2179 if(sig) 2179 if(sig)
2180 longjmp(restart, sig); 2180 longjmp(restart, sig);
2181} 2181}
2182 2182
2183//----- Come here when we get a core dump signal ----------------- 2183//----- Come here when we get a core dump signal -----------------
@@ -2196,9 +2196,8 @@ static void core_sig(int sig)
2196#endif 2196#endif
2197 2197
2198 if(sig) { // signaled 2198 if(sig) { // signaled
2199 dot = bound_dot(dot); // make sure "dot" is valid 2199 dot = bound_dot(dot); // make sure "dot" is valid
2200 2200 longjmp(restart, sig);
2201 longjmp(restart, sig);
2202 } 2201 }
2203} 2202}
2204#endif /* CONFIG_FEATURE_VI_USE_SIGNALS */ 2203#endif /* CONFIG_FEATURE_VI_USE_SIGNALS */
@@ -2684,7 +2683,7 @@ static void show_status_line(void)
2684 write1(status_buffer); 2683 write1(status_buffer);
2685 clear_to_eol(); 2684 clear_to_eol();
2686 if (have_status_msg) { 2685 if (have_status_msg) {
2687 if ((strlen(status_buffer) - (have_status_msg - 1)) > 2686 if (((int)strlen(status_buffer) - (have_status_msg - 1)) >
2688 (columns - 1) ) { 2687 (columns - 1) ) {
2689 have_status_msg = 0; 2688 have_status_msg = 0;
2690 Hit_Return(); 2689 Hit_Return();