Converted index() into strchr() which is no Linuxism anymore and also
authorJoey Schulze <joey@infodrom.org>
Sun, 18 Nov 2001 08:00:01 +0000 (08:00 +0000)
committerJoey Schulze <joey@infodrom.org>
Sun, 18 Nov 2001 08:00:01 +0000 (08:00 +0000)
available on other *nix systems or a Cygwin environment.

dtaus.c

diff --git a/dtaus.c b/dtaus.c
index c1e5727..e8f935e 100644 (file)
--- a/dtaus.c
+++ b/dtaus.c
@@ -366,8 +366,8 @@ char *extract_ident (char *line)
   static char word[30];
 
   if (strlen(line) > 0) {
-    x = index (line, ' ');
-    y = index (line, '\t');
+    x = strchr (line, ' ');
+    y = strchr (line, '\t');
 
     if (!x && !y) {
         strncpy(word, line, 29);