summaryrefslogtreecommitdiff
path: root/apps/drwho/File_Manager.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-13 03:44:51 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-13 03:44:51 +0000
commitfa452468e67f3051c6ebf94eac21ffe42ce91abe (patch)
treeb04722490a2980fe3beaa4b3b0d0c3d1cd474fbe /apps/drwho/File_Manager.cpp
parent56d17e2222378c3b825689005a8083426a8fc4ae (diff)
downloadATCD-fa452468e67f3051c6ebf94eac21ffe42ce91abe.tar.gz
*** empty log message ***
Diffstat (limited to 'apps/drwho/File_Manager.cpp')
-rw-r--r--apps/drwho/File_Manager.cpp9
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!