aboutsummaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
committerJoseph Myers <joseph@codesourcery.com>2013-06-08 00:22:23 +0000
commit60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca (patch)
tree29d9258b64874c6c9838757a9c67ef62a6a0868c /login
parent2e09a79ada1f6d92809a037d41895e3d9302ad59 (diff)
downloadglibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.zip
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.gz
glibc-60d2f8f3c7f1cdacafcbd60dc004e32cc90035ca.tar.bz2
Use (void) in no-arguments function definitions.
Diffstat (limited to 'login')
-rw-r--r--login/getpt.c2
-rw-r--r--login/tst-utmp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/login/getpt.c b/login/getpt.c
index d36e836..813e7ac 100644
--- a/login/getpt.c
+++ b/login/getpt.c
@@ -22,7 +22,7 @@
/* Open the master side of a pseudoterminal and return its file
descriptor, or -1 on error. */
int
-__getpt ()
+__getpt (void)
{
__set_errno (ENOSYS);
return -1;
diff --git a/login/tst-utmp.c b/login/tst-utmp.c
index 573d4a9..a61b543 100644
--- a/login/tst-utmp.c
+++ b/login/tst-utmp.c
@@ -395,7 +395,7 @@ do_test (int argc, char *argv[])
/* No field 'ut_type' in struct utmp. */
int
-main ()
+main (void)
{
return 0;
}