From: Russ D. <ru...@us...> - 2001-09-02 03:19:58
|
Update of /cvsroot/blob/blob/utils/mkparamblock In directory usw-pr-cvs1:/tmp/cvs-serv8745 Modified Files: mkparamblock.c Log Message: Cause mkparamblock to write each tag as a global tag (for now) Index: mkparamblock.c =================================================================== RCS file: /cvsroot/blob/blob/utils/mkparamblock/mkparamblock.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- mkparamblock.c 2001/09/02 03:08:20 1.3 +++ mkparamblock.c 2001/09/02 03:19:55 1.4 @@ -69,6 +69,7 @@ tag.hdr.ptag = PTAG_RAMDISK; tag.hdr.size = ptag_size(ptag_ramdisk); tag.hdr.conf_mask = 0; + tag.hdr.conf = 0; if ((tag.u.ramdisk.flags = read_yn(line)) == -1) return -1; @@ -83,6 +84,7 @@ tag.hdr.ptag = PTAG_BOOTDELAY; tag.hdr.size = ptag_size(ptag_bootdelay); tag.hdr.conf_mask = 0; + tag.hdr.conf = 0; if ((tag.u.bootdelay.delay = strtoul(line, 0, 0)) <= 0) return -1; @@ -98,6 +100,7 @@ tag.hdr.ptag = PTAG_CMDLINE; tag.hdr.size = (sizeof(tag.hdr) + strlen(line) + 1 + 4) >> 2; tag.hdr.conf_mask = 0; + tag.hdr.conf = 0; fwrite(&tag, sizeof(tag.hdr), 1, fp); fwrite(line, strlen(line) + 1, 1, fp); @@ -115,6 +118,7 @@ tag.hdr.ptag = PTAG_BAUD; tag.hdr.size = ptag_size(ptag_baud); tag.hdr.conf_mask = 0; + tag.hdr.conf = 0; if (!(arg = strtok(line, "\t =,"))) return -1; if ((ret = convert_baud(arg)) < 0) return -1; @@ -134,6 +138,7 @@ tag.hdr.ptag = PTAG_CORE; tag.hdr.size = ptag_size(ptag_core); tag.hdr.conf_mask = 0; + tag.hdr.conf = 0; fwrite(&tag, ptag_size(ptag_core), 4, fp); } @@ -145,6 +150,7 @@ tag.hdr.ptag = PTAG_NONE; tag.hdr.size = 0; tag.hdr.conf_mask = 0; + tag.hdr.conf = 0; fwrite(&tag, sizeof(tag.hdr), 1, fp); } |