summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2000-04-04 03:39:53 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2000-04-04 03:39:53 +0000
commit11f3cbc480cb56c77fde94d1c8bb7c8de809dc53 (patch)
tree2f13fb8d4f575cafdeedbdd346757535503f8e27 /src/util
parentc799075a61d7a4a725f92708e21cf9583b443ef0 (diff)
downloadkrb5-11f3cbc480cb56c77fde94d1c8bb7c8de809dc53.tar.gz
krb5-11f3cbc480cb56c77fde94d1c8bb7c8de809dc53.tar.xz
krb5-11f3cbc480cb56c77fde94d1c8bb7c8de809dc53.zip
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 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12147 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util')
-rw-r--r--src/util/profile/ChangeLog6
-rw-r--r--src/util/profile/prof_get.c12
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 <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
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 <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);
}
/*