Remove CVS cruft. Revert mangled manpages.
[sw-tools] / src / sw_build.c
index 4933363..717ca06 100644 (file)
@@ -1,6 +1,6 @@
 /* -*-c-*-
  *
- * $Id: sw_build.c,v 1.3 1999/09/10 15:27:33 mdw Exp $
+ * $Id$
  *
  * Management of build processes
  *
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
-/*----- Revision history --------------------------------------------------* 
- *
- * $Log: sw_build.c,v $
- * Revision 1.3  1999/09/10 15:27:33  mdw
- * Include `%'-escape substitution.
- *
- * Revision 1.2  1999/07/16 12:50:24  mdw
- * Improve exit status display.  New interface from `doto' project.
- *
- * Revision 1.1.1.1  1999/06/02 16:53:34  mdw
- * Initial import.
- *
- */
-
 /*----- Header files ------------------------------------------------------*/
 
 #include "config.h"
@@ -51,6 +37,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <time.h>
 
 #include <sys/types.h>
 #include <sys/time.h>
@@ -237,7 +224,7 @@ int sw_run(int argc, char *argv[])
 
       /* --- Fill in the hostname --- */
 
-      if (uname(&u))
+      if (uname(&u) < 0)
        strcpy(u.nodename, "<unknown>");
 
       /* --- If necessary, set up the output @argv@ array --- */
@@ -552,7 +539,7 @@ void swrsh_build(sw_remote *r, char *argv[], char *env[])
     char **p;
     struct utsname u;
 
-    if (uname(&u))
+    if (uname(&u) < 0)
       swdie(r, 1, "couldn't get hostname: %s", strerror(errno));
     if (logfd < 0)
       swdie(r, 1, "couldn't open `.build-log' file: %s", strerror(errno));