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

Comparing projects/libstatgrab/examples/process_snapshot.c (file contents):
Revision 1.3 by tdb, Sat Apr 3 22:59:30 2004 UTC vs.
Revision 1.6 by tdb, Sun Apr 4 23:57:33 2004 UTC

# Line 29 | Line 29 | int main(){
29          proc_state_t *ps;
30          int ps_size;
31          int x;
32 <        char *state;
32 >        char *state = NULL;
33  
34          /* Initialise statgrab */
35          statgrab_init();
# Line 42 | Line 42 | int main(){
42  
43          ps_size = get_proc_snapshot(&ps);
44  
45 <        if(ps_size == NULL){
45 >        if(ps_size < 0){
46                  fprintf(stderr, "Failed to get process snapshot\n");
47                  exit(1);
48          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines