[PATCH] Update generic swapon definition to match prototype.
Ryan S. Arnold
ryan.arnold@linaro.org
Thu Oct 3 21:22:00 GMT 2013
From: "Ryan S. Arnold" <ryan.arnold@linaro.org>
While building for an arch where I somehow wasn't building generated syscalls I found out that the swapon.c definition doesn't match the prototype in the header with regard to parameters.
Ryan S. Arnold
---
2013-10-03 Ryan S. Arnold <ryan.arnold@linaro.org>
* misc/swapon.c (swapon): Updated definition with FLAGS parameter to
match prototype.
diff --git a/misc/swapon.c b/misc/swapon.c
index 61933b8..0e587d4 100644
--- a/misc/swapon.c
+++ b/misc/swapon.c
@@ -22,8 +22,7 @@
/* Make the block special device PATH available to the system for swapping.
This call is restricted to the super-user. */
int
-swapon (path)
- const char *path;
+swapon (const char *path, int flags)
{
__set_errno (ENOSYS);
return -1;
--
1.8.3.1
More information about the Libc-alpha
mailing list