]> git.cameronkatri.com Git - bsdgames-darwin.git/blobdiff - hack/hack.save.c
Time warp forward 34 years so that it compiles (but not work)
[bsdgames-darwin.git] / hack / hack.save.c
index 00fc42b4bed875de3e830a420594a8475fee307b..1e93d7ef7c48f1f872712e91bfdedb92b004b55b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $NetBSD: hack.save.c,v 1.15 2011/08/06 20:00:33 dholland Exp $  */
+/*     $NetBSD: hack.save.c,v 1.16 2011/08/06 20:42:43 dholland Exp $  */
 
 /*
  * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: hack.save.c,v 1.15 2011/08/06 20:00:33 dholland Exp $");
+__RCSID("$NetBSD: hack.save.c,v 1.16 2011/08/06 20:42:43 dholland Exp $");
 #endif                         /* not lint */
 
 #include <signal.h>
@@ -192,7 +192,7 @@ dorecover(int fd)
        mread(fd, fut_geno, sizeof fut_geno);
        restnames(fd);
        while (1) {
-               if (read(fd, (char *) &tmp, sizeof tmp) != sizeof tmp)
+               if (read(fd, &tmp, sizeof tmp) != sizeof tmp)
                        break;
                getlev(fd, 0, tmp);
                glo(tmp);