Show
Ignore:
Timestamp:
2001-02-13 14:14:19 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

While I'm on it, fix a warning and remove some weired code by proper
use of ctype functions.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.c

    r2289 r2290  
    2525#include <stdlib.h> 
    2626 
     27#include <ctype.h> 
     28 
    2729#include <sys/types.h> 
    2830#include <dirent.h> 
     
    239241  /* for cosmetics' sake, transform to lowercase. */ 
    240242  for (p = dest; *p; p++) 
    241     if ('A' <= *p && *p <= 'Z') 
    242       *p += 'a' - 'A'; 
     243    if (isupper (*p)) 
     244      *p = tolower (*p); 
    243245} 
    244246 
     
    521523  if (fc->cd != (iconv_t)-1) 
    522524    iconv_close (fc->cd); 
    523   safe_free (_fc); 
    524 } 
     525  safe_free ((void **) _fc); 
     526}