diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-13 03:44:51 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-13 03:44:51 +0000 |
commit | fa452468e67f3051c6ebf94eac21ffe42ce91abe (patch) | |
tree | b04722490a2980fe3beaa4b3b0d0c3d1cd474fbe /apps/drwho/File_Manager.cpp | |
parent | 56d17e2222378c3b825689005a8083426a8fc4ae (diff) | |
download | ATCD-fa452468e67f3051c6ebf94eac21ffe42ce91abe.tar.gz |
*** empty log message ***
Diffstat (limited to 'apps/drwho/File_Manager.cpp')
-rw-r--r-- | apps/drwho/File_Manager.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/drwho/File_Manager.cpp b/apps/drwho/File_Manager.cpp index 8a77b15bac1..190b5321c46 100644 --- a/apps/drwho/File_Manager.cpp +++ b/apps/drwho/File_Manager.cpp @@ -25,8 +25,8 @@ File_Manager::open_file (const char *filename) // Returns the next LOGIN_NAME and REAL_NAME from the file. -int -File_Manager::get_login_and_real_name (char *&login_name, char *&real_name) +void +File_Manager::get_login_and_real_name (const char *&login_name, const char *&real_name) { char *buf_ptr = this->current_ptr; @@ -51,7 +51,9 @@ File_Manager::get_login_and_real_name (char *&login_name, char *&real_name) // Clear the trailing blanks and junk. - for (char *tmp_ptr = buf_ptr - 1; isspace (*tmp_ptr); tmp_ptr--) + for (char *tmp_ptr = buf_ptr - 1; + isspace (*tmp_ptr); + tmp_ptr--) *tmp_ptr = '\0'; // Skip over consecutive blank lines. @@ -60,7 +62,6 @@ File_Manager::get_login_and_real_name (char *&login_name, char *&real_name) buf_ptr++; this->current_ptr = buf_ptr; - return 1; } // Open up the yp passwd file and slurp all the users in! |