summaryrefslogtreecommitdiff
path: root/zwgc
diff options
context:
space:
mode:
authorGravatar Richard Basch <probe@mit.edu>1993-09-24 17:31:09 +0000
committerGravatar Richard Basch <probe@mit.edu>1993-09-24 17:31:09 +0000
commitb09f77f36a2f6ade6695bfd83095f3400bce0f01 (patch)
tree3ac5cdaba2aea69c9a76e5801206a9c23523d598 /zwgc
parentaee56099e7f608361812cd1509e1f2449057ca21 (diff)
Changed index() to strchr() [ANSI]
Diffstat (limited to 'zwgc')
-rw-r--r--zwgc/notice.c2
-rw-r--r--zwgc/subscriptions.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/zwgc/notice.c b/zwgc/notice.c
index bb7e833..e6e511f 100644
--- a/zwgc/notice.c
+++ b/zwgc/notice.c
@@ -278,7 +278,7 @@ char *decode_notice(notice)
* Set $sender to the name of the notice sender except first strip off the
* realm name if it is the local realm:
*/
- if ( (temp=index(notice->z_sender,'@')) && string_Eq(temp+1, ZGetRealm()) )
+ if ( (temp=strchr(notice->z_sender,'@')) && string_Eq(temp+1, ZGetRealm()) )
var_set_variable_then_free_value("sender",
string_CreateFromData(notice->z_sender,
temp-notice->z_sender));
diff --git a/zwgc/subscriptions.c b/zwgc/subscriptions.c
index c6e6f8a..ff18c06 100644
--- a/zwgc/subscriptions.c
+++ b/zwgc/subscriptions.c
@@ -272,7 +272,7 @@ static void load_subscriptions_from_file(file)
/* <<<>>>
* The below does NOT work is the recipient field is "":
*/
- if (temp = index(line, '#'))
+ if (temp = strchr(line, '#'))
*temp = '\0';
for (temp=line; *temp && *temp==' '; temp++) ;
if (!*temp || *temp=='\n')