diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-29 23:09:13 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-10-29 23:09:13 +0000 |
commit | 94f11e53f733e35296ac39e4b0959c8c55158c9f (patch) | |
tree | 752654d9a3ef967d5409600962e31bea5cae14fc /utility.c | |
parent | b23b7da7f1cbec3d3744e6a2c40a11d52c0a6dc0 (diff) | |
download | busybox-w32-94f11e53f733e35296ac39e4b0959c8c55158c9f.tar.gz busybox-w32-94f11e53f733e35296ac39e4b0959c8c55158c9f.tar.bz2 busybox-w32-94f11e53f733e35296ac39e4b0959c8c55158c9f.zip |
More stuf. sed works.
git-svn-id: svn://busybox.net/trunk/busybox@67 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r-- | utility.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -777,7 +777,7 @@ int get_console_fd(char* tty_name) | |||
777 | #endif | 777 | #endif |
778 | 778 | ||
779 | 779 | ||
780 | #if !defined BB_REGEXP && (defined BB_GREP || defined BB_FIND ) | 780 | #if !defined BB_REGEXP && (defined BB_GREP || defined BB_FIND || defined BB_SED) |
781 | 781 | ||
782 | /* Do a case insensitive strstr() */ | 782 | /* Do a case insensitive strstr() */ |
783 | char* stristr(char *haystack, const char *needle) | 783 | char* stristr(char *haystack, const char *needle) |
@@ -817,7 +817,7 @@ extern int find_match(char *haystack, char *needle, int ignoreCase) | |||
817 | /* This performs substitutions after a string match has been found. */ | 817 | /* This performs substitutions after a string match has been found. */ |
818 | extern int replace_match(char *haystack, char *needle, char *newNeedle, int ignoreCase) | 818 | extern int replace_match(char *haystack, char *needle, char *newNeedle, int ignoreCase) |
819 | { | 819 | { |
820 | int foundOne; | 820 | int foundOne=0; |
821 | char *where, *slider, *slider1, *oldhayStack; | 821 | char *where, *slider, *slider1, *oldhayStack; |
822 | 822 | ||
823 | if (ignoreCase == FALSE) | 823 | if (ignoreCase == FALSE) |
@@ -847,7 +847,7 @@ extern int replace_match(char *haystack, char *needle, char *newNeedle, int igno | |||
847 | } | 847 | } |
848 | free( oldhayStack); | 848 | free( oldhayStack); |
849 | 849 | ||
850 | if (foundOne) | 850 | if (foundOne > 0) |
851 | return TRUE; | 851 | return TRUE; |
852 | else | 852 | else |
853 | return FALSE; | 853 | return FALSE; |