* Ported to Linux's Second Extended File System as part of the
* dump and restore backup suit
* Remy Card <card@Linux.EU.Org>, 1994-1997
- * Stelian Pop <pop@cybercable.fr>, 1999
- *
+ * Stelian Pop <pop@cybercable.fr>, 1999
*/
/*
* SUCH DAMAGE.
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fstab.c 8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
+#ifndef lint
+static const char rcsid[] =
+ "$Id: fstab.c,v 1.5 1999/10/13 09:57:19 stelian Exp $";
+#endif /* not lint */
#include <errno.h>
#include <fstab.h>
static int fstabscan __P((void));
static
-int fstabscan()
+int fstabscan(void)
{
struct mntent *mnt;
register char *cp;
}
struct fstab *
-getfsent()
+getfsent(void)
{
if ((!_fs_fp && !setfsent()) || !fstabscan())
return((struct fstab *)NULL);
}
struct fstab *
-getfsspec(name)
- register const char *name;
+getfsspec(const char *name)
{
if (setfsent())
while (fstabscan())
}
struct fstab *
-getfsfile(name)
- register const char *name;
+getfsfile(const char *name)
{
if (setfsent())
while (fstabscan())
return((struct fstab *)NULL);
}
-int setfsent()
+int
+setfsent(void)
{
if (_fs_fp) {
rewind(_fs_fp);
}
void
-endfsent()
+endfsent(void)
{
if (_fs_fp) {
(void)endmntent(_fs_fp);
}
static
-void error(err)
- int err;
+void error(int err)
{
char *p;