[Mit-cadr-cvs] r354 - trunk/emulator/usim

ggilley at common-lisp.net ggilley at common-lisp.net
Fri Nov 23 23:27:17 UTC 2012


Author: ggilley
Date: Fri Nov 23 15:27:16 2012
New Revision: 354

Log:
ubuntu compilation fix

Modified:
   trunk/emulator/usim/diskmaker.c

Modified: trunk/emulator/usim/diskmaker.c
==============================================================================
--- trunk/emulator/usim/diskmaker.c	Fri Nov 23 15:26:04 2012	(r353)
+++ trunk/emulator/usim/diskmaker.c	Fri Nov 23 15:27:16 2012	(r354)
@@ -105,6 +105,8 @@
 add_partition(char *name, int start, int size, int ptype, char *label, char *filename)
 {
 	struct part_s *p = &parts[part_count++];
+	size_t i;
+
 	if (part_count > MAX_PARTITIONS) {
 		part_count--;
 		return -1;
@@ -117,7 +119,7 @@
 	p->label[16] = '\0';
 
 	// make sure the label is padded out with spaces
-	for (size_t i = strlen(p->label); i < 16; i++)
+	for (i = strlen(p->label); i < 16; i++)
         	p->label[i] = ' ';
 
 	p->filename = filename;




More information about the mit-cadr-cvs mailing list