Module Name:    src
Committed By:   jnemeth
Date:           Fri Sep 26 05:34:15 UTC 2014

Modified Files:
        src/sbin/gpt: biosboot.c

Log Message:
no C99isms in tool code


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sbin/gpt/biosboot.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/gpt/biosboot.c
diff -u src/sbin/gpt/biosboot.c:1.7 src/sbin/gpt/biosboot.c:1.8
--- src/sbin/gpt/biosboot.c:1.7	Wed Nov 27 01:47:53 2013
+++ src/sbin/gpt/biosboot.c	Fri Sep 26 05:34:15 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: biosboot.c,v 1.7 2013/11/27 01:47:53 jnemeth Exp $ */
+/*	$NetBSD: biosboot.c,v 1.8 2014/09/26 05:34:15 jnemeth Exp $ */
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$NetBSD: biosboot.c,v 1.7 2013/11/27 01:47:53 jnemeth Exp $");
+__RCSID("$NetBSD: biosboot.c,v 1.8 2014/09/26 05:34:15 jnemeth Exp $");
 #endif
 
 #include <sys/stat.h>
@@ -138,7 +138,7 @@ biosboot(int fd)
 	struct mbr *mbr, *bootcode;
 	struct gpt_hdr *hdr;
 	struct gpt_ent *ent;
-	int i;
+	unsigned int i, j;
 
 	/*
 	 * Parse and validate partition maps
@@ -212,7 +212,7 @@ biosboot(int fd)
 
 	hdr = gpt->map_data;
 
-	for (uint32_t j = 0; j < le32toh(hdr->hdr_entries); j++) {
+	for (j = 0; j < le32toh(hdr->hdr_entries); j++) {
 		ent = (void*)((char*)tbl->map_data + j * le32toh(hdr->hdr_entsz));
 		ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE;
 	}
@@ -231,7 +231,7 @@ biosboot(int fd)
 
 	hdr = tpg->map_data;
 
-	for (uint32_t j = 0; j < le32toh(hdr->hdr_entries); j++) {
+	for (j = 0; j < le32toh(hdr->hdr_entries); j++) {
 		ent = (void*)((char*)lbt->map_data + j * le32toh(hdr->hdr_entsz));
 		ent->ent_attr &= ~GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE;
 	}

Reply via email to