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

Comparing projects/libstatgrab/src/libstatgrab/error.c (file contents):
Revision 1.13 by tdb, Fri Jul 16 15:28:02 2004 UTC vs.
Revision 1.14 by ats, Sun Jul 18 20:39:02 2004 UTC

# Line 38 | Line 38 | static char error_arg[ERROR_ARG_MAX];
38   static int errno_value = 0;
39  
40   void sg_set_error(sg_error code, const char *arg) {
41 +        errno_value = 0;
42          error = code;
43          if (arg != NULL) {
44                  sg_strlcpy(error_arg, arg, sizeof error_arg);
# Line 49 | Line 50 | void sg_set_error(sg_error code, const char *arg) {
50   }
51  
52   void sg_set_error_with_errno(sg_error code, const char *arg) {
52        errno_value = errno;
53          sg_set_error(code, arg);
54 +        errno_value = errno;
55   }
56  
57   sg_error sg_get_error() {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines