ANSI C; sprintf now returns an int.
[unix-history] / usr / src / usr.sbin / config / main.c
index d72ac93..4cb3e36 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)main.c     5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c     5.5 (Berkeley) %G%";
 #endif not lint
 
 #include <stdio.h>
 #endif not lint
 
 #include <stdio.h>
@@ -70,7 +70,7 @@ main(argc, argv)
        char xxx[80];
 
        (void) symlink("../h", path("sys"));    
        char xxx[80];
 
        (void) symlink("../h", path("sys"));    
-       sprintf(xxx, "../%s", machinename);
+       (void) sprintf(xxx, "../%s", machinename);
        (void) symlink(xxx, path("machine"));
        }
        makefile();                     /* build Makefile */
        (void) symlink(xxx, path("machine"));
        }
        makefile();                     /* build Makefile */