Tweak this so it will build and run on ILP32 hosts, anyway, 0x...LL constants
are blessed by the C9X draft.
This commit is contained in:
parent
2228eaca8a
commit
33038ca087
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: setnetbootinfo.c,v 1.8 1998/02/04 23:41:45 thorpej Exp $ */
|
/* $NetBSD: setnetbootinfo.c,v 1.9 1998/12/03 04:16:18 ross Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 Christopher G. Demetriou
|
* Copyright (c) 1997 Christopher G. Demetriou
|
||||||
|
@ -190,8 +190,8 @@ main(argc, argv)
|
||||||
netbbinfop = NULL;
|
netbbinfop = NULL;
|
||||||
for (qp = (u_int64_t *)netbb; qp < (u_int64_t *)(netbb + sb.st_size);
|
for (qp = (u_int64_t *)netbb; qp < (u_int64_t *)(netbb + sb.st_size);
|
||||||
qp++) {
|
qp++) {
|
||||||
if (((struct netbbinfo *)qp)->magic1 == 0xfeedbabedeadbeef &&
|
if (((struct netbbinfo *)qp)->magic1 == 0xfeedbabedeadbeefLL &&
|
||||||
((struct netbbinfo *)qp)->magic2 == 0xfeedbeefdeadbabe) {
|
((struct netbbinfo *)qp)->magic2 == 0xfeedbeefdeadbabeLL) {
|
||||||
netbbinfop = (struct netbbinfo *)qp;
|
netbbinfop = (struct netbbinfo *)qp;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -206,8 +206,8 @@ main(argc, argv)
|
||||||
if (verbose)
|
if (verbose)
|
||||||
printf("setting netbbinfo structure...\n");
|
printf("setting netbbinfo structure...\n");
|
||||||
bzero(netbbinfop, sizeof *netbbinfop);
|
bzero(netbbinfop, sizeof *netbbinfop);
|
||||||
netbbinfop->magic1 = 0xfeedbabedeadbeef;
|
netbbinfop->magic1 = 0xfeedbabedeadbeefLL;
|
||||||
netbbinfop->magic2 = 0xfeedbeefdeadbabe;
|
netbbinfop->magic2 = 0xfeedbeefdeadbabeLL;
|
||||||
netbbinfop->set = unset ? 0 : 1;
|
netbbinfop->set = unset ? 0 : 1;
|
||||||
if (netbbinfop->set) {
|
if (netbbinfop->set) {
|
||||||
for (i = 0; i < 6; i++)
|
for (i = 0; i < 6; i++)
|
||||||
|
|
Loading…
Reference in New Issue