Changeset fa4562c for util.c


Ignore:
Timestamp:
Aug 15, 2009, 7:08:18 PM (12 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e19eb97
Parents:
65b2173
git-author:
Anders Kaseorg <andersk@mit.edu> (08/04/09 02:59:42)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:18)
Message:
Prepare code for adding const qualifiers for char * and void *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • util.c

    r65b2173 rfa4562c  
    561561{
    562562  char buff[LINE], *text;
    563   char *backupfilename="";
     563  char *backupfilename=NULL;
    564564  FILE *file, *backupfile=NULL;
    565565  int size, newline;
     
    650650  char *start, *end;
    651651
    652   start = class;
    653   while(!strncmp(start, "un", 2)) {
    654     start += 2;
    655   }
    656 
    657   start = owl_strdup(start);
     652  while(!strncmp(class, "un", 2)) {
     653    class += 2;
     654  }
     655
     656  start = owl_strdup(class);
    658657  end = start + strlen(start) - 1;
    659658  while(end > start && *end == 'd' && *(end-1) == '.') {
Note: See TracChangeset for help on using the changeset viewer.