changeset 449:230a9d79dd84

Type cleanups/fixes.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 17 Jan 2007 01:07:00 +0000
parents 699c407447e9
children 0acbe636cc2a
files src/xs_length.c
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xs_length.c	Thu Jan 11 14:31:04 2007 +0000
+++ b/src/xs_length.c	Wed Jan 17 01:07:00 2007 +0000
@@ -63,7 +63,7 @@
 
 /* Parse a time-entry in SLDB format
  */
-static gint xs_sldb_gettime(gchar *pcStr, gint *piPos)
+static gint xs_sldb_gettime(gchar *pcStr, size_t *piPos)
 {
 	gint iResult, iTemp;
 
@@ -103,7 +103,8 @@
  */
 t_xs_sldb_node * xs_sldb_read_entry(gchar *inLine)
 {
-	gint linePos, savePos, i, tmpLen, l;
+	size_t linePos;
+	gint i;
 	gboolean iOK;
 	t_xs_sldb_node *tmpNode;
 
@@ -129,6 +130,8 @@
 			xs_sldb_node_free(tmpNode);
 			return NULL;
 		} else {
+			size_t tmpLen, savePos;
+			
 			/* First playtime is after '=' */
 			savePos = ++linePos;
 			tmpLen = strlen(inLine);
@@ -157,6 +160,8 @@
 			linePos = savePos;
 			iOK = TRUE;
 			while ((linePos < tmpLen) && (i < tmpNode->nLengths) && iOK) {
+				gint l;
+				
 				xs_findnext(inLine, &linePos);
 
 				l = xs_sldb_gettime(inLine, &linePos);
@@ -200,7 +205,7 @@
 	lineNum = 0;
 
 	while (!feof(inFile)) {
-		gint linePos;
+		size_t linePos;
 		fgets(inLine, XS_BUF_SIZE, inFile);
 		inLine[XS_BUF_SIZE - 1] = 0;
 		linePos = 0;