summaryrefslogtreecommitdiffstats
path: root/src/util/profile
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2003-12-14 15:31:10 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2003-12-14 15:31:10 +0000
commit2108cc81195f30adabd926b47a62e35397ee5ab6 (patch)
treebf32b5eae4cc4ddb3a1b76fa03a6bcd296befc3b /src/util/profile
parent0d6c682b09cc266286aa644248fbc810c1ec080b (diff)
downloadkrb5-2108cc81195f30adabd926b47a62e35397ee5ab6.tar.gz
krb5-2108cc81195f30adabd926b47a62e35397ee5ab6.tar.xz
krb5-2108cc81195f30adabd926b47a62e35397ee5ab6.zip
move prof-int.h to be the first include file in order to obtain
platform specific preprocessor variables used to selectively import other header files ticket: 2068 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15921 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/profile')
-rw-r--r--src/util/profile/ChangeLog6
-rw-r--r--src/util/profile/argv_parse.c4
-rw-r--r--src/util/profile/prof_file.c4
-rw-r--r--src/util/profile/prof_get.c2
-rw-r--r--src/util/profile/prof_init.c4
-rw-r--r--src/util/profile/prof_parse.c4
-rw-r--r--src/util/profile/prof_set.c4
-rw-r--r--src/util/profile/prof_tree.c4
-rw-r--r--src/util/profile/test_parse.c4
-rw-r--r--src/util/profile/test_profile.c3
10 files changed, 25 insertions, 14 deletions
diff --git a/src/util/profile/ChangeLog b/src/util/profile/ChangeLog
index 304c0315e2..d826e31142 100644
--- a/src/util/profile/ChangeLog
+++ b/src/util/profile/ChangeLog
@@ -1,3 +1,9 @@
+2003-12-14 Jeffrey Altman <jaltman@mit.edu>
+
+ * all files: move prof-int.h to be the first include file
+ in order to obtain platform specific config preprocessor
+ variables which are used to selectively include stdlib.h
+
2003-07-03 Alexandra Ellwood <lxs@mit.edu>
* profile.hin: Remove leading spaces in #define and #include
diff --git a/src/util/profile/argv_parse.c b/src/util/profile/argv_parse.c
index 539517ad7d..7740d5345e 100644
--- a/src/util/profile/argv_parse.c
+++ b/src/util/profile/argv_parse.c
@@ -28,7 +28,11 @@
* Version 1.1, modified 2/27/1999
*/
+#include "prof_int.h"
+
+#ifdef HAVE_STDLIB_H
#include <stdlib.h>
+#endif
#include <ctype.h>
#include <string.h>
#include "argv_parse.h"
diff --git a/src/util/profile/prof_file.c b/src/util/profile/prof_file.c
index 04c833b455..357568def5 100644
--- a/src/util/profile/prof_file.c
+++ b/src/util/profile/prof_file.c
@@ -2,6 +2,8 @@
* prof_file.c ---- routines that manipulate an individual profile file.
*/
+#include "prof_int.h"
+
#include <stdio.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
@@ -11,8 +13,6 @@
#endif
#include <string.h>
-#include "prof_int.h"
-
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
diff --git a/src/util/profile/prof_get.c b/src/util/profile/prof_get.c
index d678a25f27..80a18a1fc5 100644
--- a/src/util/profile/prof_get.c
+++ b/src/util/profile/prof_get.c
@@ -4,6 +4,7 @@
*
*/
+#include "prof_int.h"
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STDLIB_H
@@ -11,7 +12,6 @@
#endif
#include <errno.h>
#include <limits.h>
-#include "prof_int.h"
/*
* These functions --- init_list(), end_list(), and add_to_list() are
diff --git a/src/util/profile/prof_init.c b/src/util/profile/prof_init.c
index 76a4943f2d..2dbcd826f7 100644
--- a/src/util/profile/prof_init.c
+++ b/src/util/profile/prof_init.c
@@ -3,6 +3,8 @@
* object.
*/
+#include "prof_int.h"
+
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STDLIB_H
@@ -10,8 +12,6 @@
#endif
#include <errno.h>
-#include "prof_int.h"
-
/* Find a 4-byte integer type */
#if (SIZEOF_SHORT == 4)
typedef short prof_int32;
diff --git a/src/util/profile/prof_parse.c b/src/util/profile/prof_parse.c
index 56f1c30f04..b18b8befac 100644
--- a/src/util/profile/prof_parse.c
+++ b/src/util/profile/prof_parse.c
@@ -1,3 +1,5 @@
+#include "prof_int.h"
+
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STDLIB_H
@@ -6,8 +8,6 @@
#include <errno.h>
#include <ctype.h>
-#include "prof_int.h"
-
#define SECTION_SEP_CHAR '/'
#define STATE_INIT_COMMENT 1
diff --git a/src/util/profile/prof_set.c b/src/util/profile/prof_set.c
index 5abf5ec9af..c121d64da6 100644
--- a/src/util/profile/prof_set.c
+++ b/src/util/profile/prof_set.c
@@ -11,6 +11,8 @@
*
*/
+#include "prof_int.h"
+
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STDLIB_H
@@ -18,8 +20,6 @@
#endif
#include <errno.h>
-#include "prof_int.h"
-
static errcode_t rw_setup(profile)
profile_t profile;
{
diff --git a/src/util/profile/prof_tree.c b/src/util/profile/prof_tree.c
index 7032a34e9b..38b86f3689 100644
--- a/src/util/profile/prof_tree.c
+++ b/src/util/profile/prof_tree.c
@@ -17,6 +17,8 @@
*/
+#include "prof_int.h"
+
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STDLIB_H
@@ -25,8 +27,6 @@
#include <errno.h>
#include <ctype.h>
-#include "prof_int.h"
-
struct profile_node {
errcode_t magic;
char *name;
diff --git a/src/util/profile/test_parse.c b/src/util/profile/test_parse.c
index 7aa0eeb620..961149c801 100644
--- a/src/util/profile/test_parse.c
+++ b/src/util/profile/test_parse.c
@@ -1,3 +1,5 @@
+#include "prof_int.h"
+
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STDLIB_H
@@ -6,8 +8,6 @@
#include <errno.h>
#include <ctype.h>
-#include "prof_int.h"
-
void dump_profile (struct profile_node *root, int level);
int main(argc, argv)
diff --git a/src/util/profile/test_profile.c b/src/util/profile/test_profile.c
index 8a97dd2f7a..5cdbf7689c 100644
--- a/src/util/profile/test_profile.c
+++ b/src/util/profile/test_profile.c
@@ -2,13 +2,14 @@
* test_profile.c --- testing program for the profile routine
*/
+#include "prof_int.h"
+
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
-#include "prof_int.h"
#include "argv_parse.h"
#include "com_err.h"