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

Comparing projects/libstatgrab/src/libstatgrab/vector.c (file contents):
Revision 1.4 by ats, Mon Apr 5 00:58:05 2004 UTC vs.
Revision 1.5 by ats, Mon Apr 5 15:40:15 2004 UTC

# Line 29 | Line 29
29  
30   #include "vector.h"
31  
32 < void *statgrab_vector_resize(void *vector, vector_header *h, int count) {
32 > void *sg_vector_resize(void *vector, vector_header *h, int count) {
33          int new_count, i;
34  
35          /* Destroy any now-unused items.
# Line 55 | Line 55 | void *statgrab_vector_resize(void *vector, vector_head
55                  new_vector = realloc(vector, new_count * h->item_size);
56                  if (new_vector == NULL && new_count != 0) {
57                          /* Out of memory -- free the contents of the vector. */
58 <                        statgrab_vector_resize(vector, h, 0);
58 >                        sg_vector_resize(vector, h, 0);
59                          h->error = -1;
60                          return vector;
61                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines