ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/user_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/user_stats.c (file contents):
Revision 1.5 by pajs, Sat Mar 1 15:01:01 2003 UTC vs.
Revision 1.6 by pajs, Sun Mar 2 16:43:48 2003 UTC

# Line 45 | Line 45 | user_stat_t *get_user_stats(){
45                          return NULL;
46                  }
47                  size_of_namelist=START_VAL;
48                printf("Initially started at %d\n", size_of_namelist);
48          }      
49  
50          /* Essentially blank the list, or give it a inital starting string */
# Line 56 | Line 55 | user_stat_t *get_user_stats(){
55                          if((strlen(user_stats.name_list)+MAX_LOGIN_NAME_SIZE+2) > size_of_namelist){
56                                  tmp=user_stats.name_list;
57                                  user_stats.name_list=realloc(user_stats.name_list, 1+(size_of_namelist*2));
59                                printf("realloc to %d\n", 1+(size_of_namelist*2));
58                                  if(user_stats.name_list==NULL){
61                                        printf("realloc failed\n");
59                                          user_stats.name_list=tmp;
60                                          return NULL;
61                                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines