From 010018e43191fbc1af3890350ad41bb99277d4e6 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Sat, 8 Feb 1997 00:22:17 +0000 Subject: [PATCH] prof_int.h: Include "com_err.h" instead of redeclaring errcode_t git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9819 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/profile/ChangeLog | 6 ++++++ src/util/profile/prof_int.h | 21 +++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog index c0b3c0cf3..274bb8a50 100644 --- a/src/util/profile/ChangeLog +++ b/src/util/profile/ChangeLog @@ -1,3 +1,9 @@ +Fri Feb 7 18:56:57 1997 Richard Basch + + * prof_int.h: + Include com_err.h rather than redefining errcode_t + Structure element "magic" should not be errcode_t + Wed Feb 5 20:18:33 1997 Richard Basch * profile.hin: Do not process the contents of profile.h diff --git a/src/util/profile/prof_int.h b/src/util/profile/prof_int.h index 4fd122eee..89e7017f1 100644 --- a/src/util/profile/prof_int.h +++ b/src/util/profile/prof_int.h @@ -3,6 +3,7 @@ */ #include +#include "com_err.h" #include "prof_err.h" #if defined(__STDC__) || defined(_MSDOS) || defined(_WIN32) @@ -29,19 +30,19 @@ #define NO_SYS_STAT_H #endif -typedef long errcode_t; +typedef long prf_magic_t; /* * This is the structure which stores the profile information for a * particular configuration file. */ struct _prf_file_t { - errcode_t magic; - char *comment; - char *filename; + prf_magic_t magic; + char *comment; + char *filename; struct profile_node *root; - time_t timestamp; - int flags; + time_t timestamp; + int flags; struct _prf_file_t *next; }; @@ -53,7 +54,7 @@ typedef struct _prf_file_t *prf_file_t; * configuration file(s) */ struct _profile_t { - errcode_t magic; + prf_magic_t magic; prf_file_t first_file; }; @@ -64,7 +65,7 @@ typedef struct _profile_t *profile_t; * returned to the user when a section is searched. */ struct _profile_section_t { - errcode_t magic; + prf_magic_t magic; int top_lvl:1, top_lvl_search:1; char *name; void *state; @@ -135,10 +136,10 @@ extern errcode_t profile_close_file /* prof_init.c */ -errcode_t profile_init +extern errcode_t profile_init PROTOTYPE ((const char **filenames, profile_t *ret_profile)); -errcode_t profile_init_path +extern errcode_t profile_init_path PROTOTYPE ((const char *filepath, profile_t *ret_profile)); extern void profile_release -- 2.26.2