From fea48988ea866e6ef4f29247a13a8b28eb9be7ce Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 27 Jan 2003 00:16:01 +0000 Subject: * strings.h (strechr): New function. * uinfo.cc (pwdgrp::next_str): Search only for input char in string. Return EOS on failure. Don't check for NULL since it shouldn't be possible. (pwdgrp::add_line): Revert to replacing '\n' in input line with '\0'. (pwdgrp::next_num): Pass explicit separator character to next_str. * grp.cc (pwdgrp::parse_group): Ditto. * passwd.cc (pwdgrp::parse_passwd): Ditto. Revamp test for garbage input. * pwdgrp.h (pwdgrp::next_str): Don't use default parameter. --- winsup/cygwin/pwdgrp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/pwdgrp.h') diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index a5fdc19..73d41a0 100644 --- a/winsup/cygwin/pwdgrp.h +++ b/winsup/cygwin/pwdgrp.h @@ -46,7 +46,7 @@ class pwdgrp void read_group (); char *add_line (char *); char *raw_ptr () const {return lptr;} - char *next_str (char = 0); + char *next_str (char); bool next_num (unsigned long&); bool next_num (unsigned int& i) { -- cgit v1.1