Module Name:    src
Committed By:   jakllsch
Date:           Wed Jan  5 21:44:23 UTC 2011

Modified Files:
        src/sys/arch/i386/stand/lib: biosdisk.c

Log Message:
Let the compiler determine the correct type for sizeof().
>From Mike Volokhov's GPT booting GSoC.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/i386/stand/lib/biosdisk.c

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

Modified files:

Index: src/sys/arch/i386/stand/lib/biosdisk.c
diff -u src/sys/arch/i386/stand/lib/biosdisk.c:1.34 src/sys/arch/i386/stand/lib/biosdisk.c:1.35
--- src/sys/arch/i386/stand/lib/biosdisk.c:1.34	Thu Dec 30 22:28:53 2010
+++ src/sys/arch/i386/stand/lib/biosdisk.c	Wed Jan  5 21:44:23 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: biosdisk.c,v 1.34 2010/12/30 22:28:53 jakllsch Exp $	*/
+/*	$NetBSD: biosdisk.c,v 1.35 2011/01/05 21:44:23 jakllsch Exp $	*/
 
 /*
  * Copyright (c) 1996, 1998
@@ -497,7 +497,7 @@
 out:
         va_end(ap);
 	if (error)
-		dealloc(d, sizeof(struct biosdisk));
+		dealloc(d, sizeof(*d));
 	return error;
 }
 
@@ -511,7 +511,7 @@
 	if (d->ll.type == BIOSDISK_TYPE_FD)
 		wait_sec(3);	/* 2s is enough on all PCs I found */
 
-	dealloc(d, sizeof(struct biosdisk));
+	dealloc(d, sizeof(*d));
 	f->f_devdata = NULL;
 	return 0;
 }

Reply via email to