summaryrefslogtreecommitdiff
path: root/include/mntent.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-11-18 06:17:03 -0500
committerMike Frysinger <vapier@gentoo.org>2012-11-18 06:17:03 -0500
commit290e19f8147d9b3c0166d3520e718ae5603e4cef (patch)
tree3c77d58f8cd8115b861809560e644699341c14ee /include/mntent.h
parent266bdc1f623fe6fe489e5115e0f8ef723705d949 (diff)
drop support for pre ISO-C compilers
This drops __signed, __volatile, and __const. Only the latter was used in the code base, and for uClibc, not consistently. Much of the code used plain "const" which meant "__const" was useless. Really, the point of this is to stay in sync with what glibc did. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/mntent.h')
-rw-r--r--include/mntent.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mntent.h b/include/mntent.h
index daa0a60ea..f9f119db5 100644
--- a/include/mntent.h
+++ b/include/mntent.h
@@ -63,7 +63,7 @@ struct mntent
/* Prepare to begin reading and/or writing mount table entries from the
beginning of FILE. MODE is as for `fopen'. */
-extern FILE *setmntent (__const char *__file, __const char *__mode) __THROW;
+extern FILE *setmntent (const char *__file, const char *__mode) __THROW;
libc_hidden_proto(setmntent)
/* Read one mount table entry from STREAM. Returns a pointer to storage
@@ -83,7 +83,7 @@ libc_hidden_proto(getmntent_r)
/* Write the mount table entry described by MNT to STREAM.
Return zero on success, nonzero on failure. */
extern int addmntent (FILE *__restrict __stream,
- __const struct mntent *__restrict __mnt) __THROW;
+ const struct mntent *__restrict __mnt) __THROW;
/* Close a stream opened with `setmntent'. */
extern int endmntent (FILE *__stream) __THROW;
@@ -91,8 +91,8 @@ libc_hidden_proto(endmntent)
/* Search MNT->mnt_opts for an option matching OPT.
Returns the address of the substring, or null if none found. */
-extern char *hasmntopt (__const struct mntent *__mnt,
- __const char *__opt) __THROW;
+extern char *hasmntopt (const struct mntent *__mnt,
+ const char *__opt) __THROW;
__END_DECLS