Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt no C99isms in tool code



details:   https://anonhg.NetBSD.org/src/rev/39723433f48a
branches:  trunk
changeset: 802659:39723433f48a
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Fri Sep 26 05:34:15 2014 +0000

description:
no C99isms in tool code

diffstat:

 sbin/gpt/biosboot.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 5eee6c1369c1 -r 39723433f48a sbin/gpt/biosboot.c
--- a/sbin/gpt/biosboot.c       Fri Sep 26 05:01:44 2014 +0000
+++ b/sbin/gpt/biosboot.c       Fri Sep 26 05:34:15 2014 +0000
@@ -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 @@
        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 @@
 
        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 @@
 
        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;
        }



Home | Main Index | Thread Index | Old Index