map.c

changeset 62
aae5facf9fc5
parent 53
f8f9366b359c
child 70
e866dc825481
--- a/map.c	Mon Feb 16 18:09:03 2004 +0100
+++ b/map.c	Mon Feb 16 18:50:28 2004 +0100
@@ -14,19 +14,19 @@
 int stringintmap_ndx(const StringIntMap *map, const char *str)
 {
     int i;
-	
-	for(i=0; map[i].string!=NULL; i++){
-		if(strcmp(str, map[i].string)==0)
-			return i;
-	}
-	
-	return -1;
+    
+    for(i=0; map[i].string!=NULL; i++){
+        if(strcmp(str, map[i].string)==0)
+            return i;
+    }
+    
+    return -1;
 }
 
 
 int stringintmap_value(const StringIntMap *map, const char *str, int dflt)
 {
     int i=stringintmap_ndx(map, str);
-	return (i==-1 ? dflt : map[i].value); 
+    return (i==-1 ? dflt : map[i].value); 
 }
 

mercurial