From: Russ D. <ru...@us...> - 2001-09-02 03:08:23
|
Update of /cvsroot/blob/blob/utils/mkparamblock In directory usw-pr-cvs1:/tmp/cvs-serv7168/utils/mkparamblock Modified Files: mkparamblock.c Log Message: add configuration logic to blob tags Index: mkparamblock.c =================================================================== RCS file: /cvsroot/blob/blob/utils/mkparamblock/mkparamblock.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- mkparamblock.c 2001/09/02 02:29:54 1.2 +++ mkparamblock.c 2001/09/02 03:08:20 1.3 @@ -68,6 +68,7 @@ struct ptag tag; tag.hdr.ptag = PTAG_RAMDISK; tag.hdr.size = ptag_size(ptag_ramdisk); + tag.hdr.conf_mask = 0; if ((tag.u.ramdisk.flags = read_yn(line)) == -1) return -1; @@ -81,6 +82,7 @@ struct ptag tag; tag.hdr.ptag = PTAG_BOOTDELAY; tag.hdr.size = ptag_size(ptag_bootdelay); + tag.hdr.conf_mask = 0; if ((tag.u.bootdelay.delay = strtoul(line, 0, 0)) <= 0) return -1; @@ -95,6 +97,7 @@ int zero = 0; tag.hdr.ptag = PTAG_CMDLINE; tag.hdr.size = (sizeof(tag.hdr) + strlen(line) + 1 + 4) >> 2; + tag.hdr.conf_mask = 0; fwrite(&tag, sizeof(tag.hdr), 1, fp); fwrite(line, strlen(line) + 1, 1, fp); @@ -111,6 +114,7 @@ tag.hdr.ptag = PTAG_BAUD; tag.hdr.size = ptag_size(ptag_baud); + tag.hdr.conf_mask = 0; if (!(arg = strtok(line, "\t =,"))) return -1; if ((ret = convert_baud(arg)) < 0) return -1; @@ -129,6 +133,7 @@ struct ptag tag; tag.hdr.ptag = PTAG_CORE; tag.hdr.size = ptag_size(ptag_core); + tag.hdr.conf_mask = 0; fwrite(&tag, ptag_size(ptag_core), 4, fp); } @@ -139,6 +144,7 @@ struct ptag tag; tag.hdr.ptag = PTAG_NONE; tag.hdr.size = 0; + tag.hdr.conf_mask = 0; fwrite(&tag, sizeof(tag.hdr), 1, fp); } |