about summary refs log tree commit diff
path: root/sysdeps/generic/ptsname.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/ptsname.c')
-rw-r--r--sysdeps/generic/ptsname.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/generic/ptsname.c b/sysdeps/generic/ptsname.c
index 2f985c7d59..c16e056a97 100644
--- a/sysdeps/generic/ptsname.c
+++ b/sysdeps/generic/ptsname.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
 
@@ -39,7 +39,7 @@ __ptsname_r (fd, buf, len)
      size_t len __attribute__ ((unused));
 {
   __set_errno (ENOSYS);
-  return 0;
+  return ENOSYS;
 }
 weak_alias (__ptsname_r, ptsname_r)