summaryrefslogtreecommitdiff
path: root/man3/getutent.3
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2005-07-07 08:27:03 +0000
committerMichael Kerrisk <mtk.manpages@gmail.com>2005-07-07 08:27:03 +0000
commit8c383102d0093c8f042728aa05716b89416b64dd (patch)
tree17d8f127d4fb4cd3239b1c8e3eca7c4de8e5e4fd /man3/getutent.3
parent2bc2f4798feabd972879ff8f1633b08e337f57e1 (diff)
hyphen/dash fixes
Diffstat (limited to 'man3/getutent.3')
-rw-r--r--man3/getutent.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/getutent.3 b/man3/getutent.3
index 128577562..7a636b5f8 100644
--- a/man3/getutent.3
+++ b/man3/getutent.3
@@ -128,10 +128,10 @@ int main(int argc, char *argv[])
entry.ut_type=USER_PROCESS;
entry.ut_pid=getpid();
strcpy(entry.ut_line,ttyname(0)+strlen("/dev/"));
- /* only correct for ptys named /dev/tty[pqr][0-9a-z] */
+ /* only correct for ptys named /dev/tty[pqr][0\-9a\-z] */
strcpy(entry.ut_id,ttyname(0)+strlen("/dev/tty"));
time(&entry.ut_time);
- strcpy(entry.ut_user,getpwuid(getuid())->pw_name);
+ strcpy(entry.ut_user,getpwuid(getuid())\->pw_name);
memset(entry.ut_host,0,UT_HOSTSIZE);
entry.ut_addr=0;
setutent();