From 11f3cbc480cb56c77fde94d1c8bb7c8de809dc53 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 4 Apr 2000 03:39:53 +0000 Subject: [PATCH] 2000-04-03 Jeffrey Altman * prof_get.c: . Added #include 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 | 6 ++++++ src/util/profile/prof_get.c | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index d30a26b31..27d324e4b 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,9 @@ +2000-04-03 Jeffrey Altman + + * prof_get.c: + . Added #include for definitions of INT_MAX, etc. + . Changed 'ret_int' to 'ret_boolean' in prof_get_boolean + 2000-03-24 Miro Jurisic * prof_get.c: Added prof_get_boolean and changed prof_get_integer diff --git a/src/util/profile/prof_get.c b/src/util/profile/prof_get.c index cf8cef41f..7c671674a 100644 --- a/src/util/profile/prof_get.c +++ b/src/util/profile/prof_get.c @@ -10,7 +10,7 @@ #include #endif #include - +#include #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); } /* -- 2.26.2