aboutsummaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
Diffstat (limited to 'login')
-rw-r--r--login/grantpt.c3
-rw-r--r--login/ptsname.c10
-rw-r--r--login/unlockpt.c3
3 files changed, 6 insertions, 10 deletions
diff --git a/login/grantpt.c b/login/grantpt.c
index eb48342..d90c757 100644
--- a/login/grantpt.c
+++ b/login/grantpt.c
@@ -23,8 +23,7 @@
with the slave to the calling process, and set its group and
mode appropriately. Note that this is an unprivileged operation. */
int
-grantpt (fd)
- int fd __attribute__ ((unused));
+grantpt (int fd __attribute__ ((unused)))
{
__set_errno (ENOSYS);
return -1;
diff --git a/login/ptsname.c b/login/ptsname.c
index 9536b05..4fe138d 100644
--- a/login/ptsname.c
+++ b/login/ptsname.c
@@ -24,18 +24,16 @@
of the associated slave. */
char *
-ptsname (fd)
- int fd __attribute__ ((unused));
+ptsname (int fd __attribute__ ((unused)))
{
__set_errno (ENOSYS);
return NULL;
}
int
-__ptsname_r (fd, buf, len)
- int fd __attribute__ ((unused));
- char *buf __attribute__ ((unused));
- size_t len __attribute__ ((unused));
+__ptsname_r (int fd __attribute__ ((unused)),
+ char *buf __attribute__ ((unused)),
+ size_t len __attribute__ ((unused)))
{
__set_errno (ENOSYS);
return ENOSYS;
diff --git a/login/unlockpt.c b/login/unlockpt.c
index 1f3111e..595c3f4 100644
--- a/login/unlockpt.c
+++ b/login/unlockpt.c
@@ -23,8 +23,7 @@
the slave can be opened. This is to avoid a race between opening the
master and calling grantpt() to take possession of the slave. */
int
-unlockpt (fd)
- int fd __attribute__ ((unused));
+unlockpt (int fd __attribute__ ((unused)))
{
__set_errno (ENOSYS);
return -1;