summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/boot98cfg/boot98cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/boot98cfg/boot98cfg.c b/usr.sbin/boot98cfg/boot98cfg.c
index 9bfa090..7ab9c2b 100644
--- a/usr.sbin/boot98cfg/boot98cfg.c
+++ b/usr.sbin/boot98cfg/boot98cfg.c
@@ -154,9 +154,9 @@ write_boot(const char *disk, u_char *boot)
fd = open(buf, O_RDONLY);
if (fd < 0)
continue;
- n = ioctl(fd, DIOCGPC98, boot);
+ n = ioctl(fd, DIOCSPC98, boot);
if (n != 0)
- err(1, "%s: ioctl DIOCGPC98", disk);
+ err(1, "%s: ioctl DIOCSPC98", disk);
close(fd);
return 0;
}
OpenPOWER on IntegriCloud