From 5c04191ccc8b40a8a78fd5dbe1b89ef00932fe89 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Sun, 18 Nov 2001 08:00:01 +0000 Subject: [PATCH] Converted index() into strchr() which is no Linuxism anymore and also available on other *nix systems or a Cygwin environment. --- dtaus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtaus.c b/dtaus.c index c1e5727..e8f935e 100644 --- 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); -- 2.20.1