Skip to content

Commit

Permalink
Fix some stub prototypes missing ... after K&R conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland McGrath committed Nov 5, 2015
1 parent f268ab5 commit f75226e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-11-05 Roland McGrath <roland@hack.frob.com>

* io/fcntl.c (__fcntl): Add ... to prototype.
* misc/ioctl.c (__ioctl): Likewise.
* misc/syscall.c (syscall): Likewise.

2015-11-05 Joseph Myers <joseph@codesourcery.com>

* scripts/list-fixed-bugs.py: New file.
Expand Down
2 changes: 1 addition & 1 deletion io/fcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

/* Perform file control operations on FD. */
int
__fcntl (int fd, int cmd)
__fcntl (int fd, int cmd, ...)
{
if (fd < 0)
{
Expand Down
2 changes: 1 addition & 1 deletion misc/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/* Perform the I/O control operation specified by REQUEST on FD.
The actual type and use of ARG and the return value depend on REQUEST. */
int
__ioctl (int fd, unsigned long int request)
__ioctl (int fd, unsigned long int request, ...)
{
__set_errno (ENOSYS);
return -1;
Expand Down
2 changes: 1 addition & 1 deletion misc/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
This only makes sense in certain operating systems. */

long int
syscall (long int callno)
syscall (long int callno, ...)
{
__set_errno (ENOSYS);
return -1;
Expand Down

0 comments on commit f75226e

Please sign in to comment.