2000-04-03 Jeffrey Altman <jaltman@columbia.edu>
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 4 Apr 2000 03:39:53 +0000 (03:39 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 4 Apr 2000 03:39:53 +0000 (03:39 +0000)
        * prof_get.c:
          . Added #include <limits.h> for definitions of INT_MAX, etc.
          . Changed 'ret_int' to 'ret_boolean' in prof_get_boolean

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12147 dc483132-0cff-0310-8789-dd5450dbe970

src/util/profile/ChangeLog
src/util/profile/prof_get.c

index d30a26b319fe3310d02bb3e15ee4d97f912fbc63..27d324e4b9654ff98f72f3b4feb9758dc59b223a 100644 (file)
@@ -1,3 +1,9 @@
+2000-04-03  Jeffrey Altman <jaltman@columbia.edu>
+
+        * prof_get.c: 
+          . Added #include <limits.h> for definitions of INT_MAX, etc.
+          . Changed 'ret_int' to 'ret_boolean' in prof_get_boolean
+
 2000-03-24  Miro Jurisic  <meeroh@mit.edu>
 
        * prof_get.c: Added prof_get_boolean and changed prof_get_integer
index cf8cef41fcd3aba01aff800108f7ab386205d0eb..7c671674a7b21ae41234e6b446700078284077b1 100644 (file)
@@ -10,7 +10,7 @@
 #include <stdlib.h>
 #endif
 #include <errno.h>
-
+#include <limits.h>
 #include "prof_int.h"
 
 /*
@@ -252,7 +252,7 @@ profile_get_integer(profile, name, subname, subsubname,
        const char      *value;
        errcode_t       retval;
        const char      *names[4];
-       const char *end_value;
+       char            *end_value;
        long            ret_long;
 
        if (profile == 0) {
@@ -324,14 +324,14 @@ profile_get_boolean(profile, name, subname, subsubname,
        profile_t       profile;
        const char      *name, *subname, *subsubname;
        int             def_val;
-       int             *ret_int;
+       int             *ret_boolean;
 {
        const char      *value;
        errcode_t       retval;
        const char      *names[4];
 
        if (profile == 0) {
-               *ret_int = def_val;
+               *ret_boolean = def_val;
                return 0;
        }
 
@@ -341,12 +341,12 @@ profile_get_boolean(profile, name, subname, subsubname,
        names[3] = 0;
        retval = profile_get_value(profile, names, &value);
        if (retval == PROF_NO_SECTION || retval == PROF_NO_RELATION) {
-               *ret_int = def_val;
+               *ret_boolean = def_val;
                return 0;
        } else if (retval)
                return retval;
    
-       return prof_parse_boolean (value, ret_int);
+       return prof_parse_boolean (value, ret_boolean);
 }
 
 /*