aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-10 02:52:19 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-12-10 02:52:19 +0000
commita71f48891f22c5556d55a50ddcec9343fc5a3af1 (patch)
tree45ca2d70e7a570de52267d55554875ef7003939b
parent29c6ccf781963337140791f16197b54699775f07 (diff)
downloadbusybox-w32-a71f48891f22c5556d55a50ddcec9343fc5a3af1.tar.gz
busybox-w32-a71f48891f22c5556d55a50ddcec9343fc5a3af1.tar.bz2
busybox-w32-a71f48891f22c5556d55a50ddcec9343fc5a3af1.zip
bb_makedev: fix for glibc 2.3.2
sed: fix C++ style declaration git-svn-id: svn://busybox.net/trunk/busybox@16831 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--editors/sed.c6
-rw-r--r--libbb/makedev.c1
-rw-r--r--miscutils/nmeter.c1
3 files changed, 4 insertions, 4 deletions
diff --git a/editors/sed.c b/editors/sed.c
index 877d1c420..ac3d8d463 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -796,15 +796,15 @@ static void process_files(void)
796 char *pattern_space, *next_line; 796 char *pattern_space, *next_line;
797 int linenum = 0, prev_last_char = 0; 797 int linenum = 0, prev_last_char = 0;
798 int last_char, next_last_char = 0; 798 int last_char, next_last_char = 0;
799 sed_cmd_t *sed_cmd;
800 int substituted;
799 801
800 /* Prime the pump */ 802 /* Prime the pump */
801 next_line = get_next_line(&next_last_char); 803 next_line = get_next_line(&next_last_char);
802 804
803 /* go through every line in each file */ 805 /* go through every line in each file */
804again: 806again:
805 807 substituted = 0;
806 sed_cmd_t *sed_cmd;
807 int substituted = 0;
808 808
809 /* Advance to next line. Stop if out of lines. */ 809 /* Advance to next line. Stop if out of lines. */
810 pattern_space = next_line; 810 pattern_space = next_line;
diff --git a/libbb/makedev.c b/libbb/makedev.c
index 09ed7287d..4903e4783 100644
--- a/libbb/makedev.c
+++ b/libbb/makedev.c
@@ -7,6 +7,7 @@
7 */ 7 */
8 8
9/* We do not include libbb.h - #define makedev() is there! */ 9/* We do not include libbb.h - #define makedev() is there! */
10#include <features.h>
10#include <sys/sysmacros.h> 11#include <sys/sysmacros.h>
11 12
12#ifdef __GLIBC__ 13#ifdef __GLIBC__
diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c
index 326d7b85f..b09877137 100644
--- a/miscutils/nmeter.c
+++ b/miscutils/nmeter.c
@@ -16,7 +16,6 @@
16#include <time.h> 16#include <time.h>
17 17
18typedef unsigned long long ullong; 18typedef unsigned long long ullong;
19typedef unsigned long ulong;
20 19
21enum { proc_file_size = 4096 }; 20enum { proc_file_size = 4096 };
22 21