Changeset 17 for trunk/src/get_conf.c

Show
Ignore:
Timestamp:
05/22/06 16:25:24 (17 years ago)
Author:
andreu
Message:

*** empty log message ***

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/get_conf.c

    r16 r17  
    133133 * read IPv4 prefix file and sort the list 
    134134 */ 
    135 short getPrefixV4(char *filename, struct PrefixV4 *pV4TabPtr) 
     135unsigned short getPrefixV4(char *filename, struct PrefixV4 *pV4TabPtr) 
    136136{ 
    137137  FILE *prefixFile; 
    138138  char line[200]; 
    139   int counter = 0; 
     139  unsigned short counter = 0; 
    140140  unsigned short n0, n1, n2, n3, n4, n5; 
    141141  unsigned char buffer4[4]; 
     
    174174    } 
    175175  if( fclose(prefixFile) == 0) { 
    176     return (1); 
     176    return (counter); 
    177177  } else { 
    178178    fprintf(stderr,"%s not closed, \n", filename); 
    179179    exit(1); 
    180     return(0); 
     180    return(counter); 
    181181  } 
    182182}