]> andersk Git - moira.git/blobdiff - lib/nfsparttype.c
second code style cleanup: void/void * usage, proper #includes. try to
[moira.git] / lib / nfsparttype.c
index 2aec68f2a21bcb6a65699206fc00e622e4f37e33..b814008652a9a0b0edbed913dce68092edf470bc 100644 (file)
@@ -1,27 +1,21 @@
-/*
- *     $Source$
- *     $Author$
- *     $Header$
+/* $Id $
+ *
+ * Deal with NFS partition types
  *
- *     Copyright (C) 1987 by the Massachusetts Institute of Technology
- *     For copying and distribution information, please see the file
- *     <mit-copyright.h>.
+ * Copyright (C) 1987-1998 by the Massachusetts Institute of Technology
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
  *
  */
 
-#ifndef lint
-static char *rcsid_nfsparttype_c = "$Header$";
-#endif
-
 #include <mit-copyright.h>
 #include <moira.h>
+
 #include <stdio.h>
-#include <string.h>
-#include <ctype.h>
 #include <stdlib.h>
+#include <string.h>
 
-extern char *strsave();
-extern char *strtrim();
+RCSID("$Header$");
 
 struct pair {
   int type;
@@ -78,7 +72,7 @@ char *format_filesys_type(char *fs_status)
     }
   if (!n_names)
     strcpy(buf, "none");
-  return strsave(buf);
+  return strdup(buf);
 }
 
 /*
@@ -121,5 +115,5 @@ char *parse_filesys_type(char *fs_type_name)
     }
   while (cp);
   sprintf(temp, "%d", flags);
-  return strsave(temp);
+  return strdup(temp);
 }
This page took 0.092007 seconds and 4 git commands to generate.