]> git.wh0rd.org - dump.git/blobdiff - compat/lib/fstab.c
Added CVS Id.
[dump.git] / compat / lib / fstab.c
index 0b51de5040e87bf98bdb51e3b00018fd34107ca7..32e6b028444fac6ff915308ac52f617280775842 100644 (file)
  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
+ *
+ * $Id: fstab.c,v 1.4 1999/10/11 13:31:10 stelian Exp $
  */
 
-#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fstab.c    8.1 (Berkeley) 6/4/93";
-#endif /* LIBC_SCCS and not lint */
-
 #include <errno.h>
 #include <fstab.h>
 #include <mntent.h>
@@ -58,7 +56,7 @@ static void error __P((int));
 static int fstabscan __P((void));
 
 static
-int fstabscan()
+int fstabscan(void)
 {
        struct mntent   *mnt;
        register char *cp;
@@ -111,7 +109,7 @@ int fstabscan()
 }
 
 struct fstab *
-getfsent()
+getfsent(void)
 {
        if ((!_fs_fp && !setfsent()) || !fstabscan())
                return((struct fstab *)NULL);
@@ -119,8 +117,7 @@ getfsent()
 }
 
 struct fstab *
-getfsspec(name)
-       register const char *name;
+getfsspec(const char *name)
 {
        if (setfsent())
                while (fstabscan())
@@ -130,8 +127,7 @@ getfsspec(name)
 }
 
 struct fstab *
-getfsfile(name)
-       register const char *name;
+getfsfile(const char *name)
 {
        if (setfsent())
                while (fstabscan())
@@ -140,7 +136,8 @@ getfsfile(name)
        return((struct fstab *)NULL);
 }
 
-int setfsent()
+int
+setfsent(void)
 {
        if (_fs_fp) {
                rewind(_fs_fp);
@@ -153,7 +150,7 @@ int setfsent()
 }
 
 void
-endfsent()
+endfsent(void)
 {
        if (_fs_fp) {
                (void)endmntent(_fs_fp);
@@ -162,8 +159,7 @@ endfsent()
 }
 
 static
-void error(err)
-       int err;
+void error(int err)
 {
        char *p;