From 00c02009e1de3020b631b9b33a70c8e197189150 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sat, 23 Sep 1995 00:00:54 +0000 Subject: [PATCH] prof_int.h: added SIZEOF defines for the PC, and added missing prototype for profile_find_node_name() prof_init.c (profile_get_first_values): Remove unused variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6817 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/ChangeLog | 7 +++++++ src/util/profile/prof_init.c | 4 ---- src/util/profile/prof_int.h | 16 +++++++++++----- 3 files changed, 18 insertions(+), 9 deletions(-) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index 6602bb14d..dd07438ac 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,10 @@ +Fri Sep 22 19:51:44 1995 Theodore Y. Ts'o + + * prof_int.h: added SIZEOF defines for the PC, and added missing + prototype for profile_find_node_name() + + * prof_init.c (profile_get_first_values): Remove unused variables. + Mon Sep 11 15:30:52 1995 Ezra Peisach * prof_parse.c (dump_profile_to_file): Convert C+ comment to diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c index c0d10f689..581605adb 100644 --- a/src/util/profile/prof_init.c +++ b/src/util/profile/prof_init.c @@ -191,11 +191,7 @@ errcode_t profile_get_first_values(profile, names, ret_values) void *state; char *value; struct string_list values; - const char **cpp; - char *dummyvalue; char *secname; - const char *mynames[3]; - if (profile == 0) return PROF_NO_PROFILE; diff --git a/src/util/profile/prof_int.h b/src/util/profile/prof_int.h index 3f71b920e..48ec888db 100644 --- a/src/util/profile/prof_int.h +++ b/src/util/profile/prof_int.h @@ -11,6 +11,13 @@ #define PROTOTYPE(x) () #endif +#if defined(_MSDOS) +/* From k5-config.h */ +#define SIZEOF_INT 2 +#define SIZEOF_SHORT 2 +#define SIZEOF_LONG 4 +#endif + #if defined(_MACINTOSH) #define NO_SYS_TYPES_H #define NO_SYS_STAT_H @@ -104,6 +111,10 @@ extern errcode_t profile_get_node_parent extern errcode_t profile_delete_node_relation PROTOTYPE ((struct profile_node *section, const char *name)); +extern errcode_t profile_find_node_name + PROTOTYPE ((struct profile_node *section, void **state, + char **ret_name)); + /* prof_file.c */ extern errcode_t profile_open_file @@ -134,8 +145,3 @@ extern errcode_t profile_get_integer PROTOTYPE((profile_t profile, const char *name, const char *subname, const char *subsubname, int def_val, int *ret_default)); - - - - - -- 2.26.2