Skip to content

Commit

Permalink
Add limits.h to libradius.h
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed May 24, 2014
1 parent 326572f commit c506c79
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 13 deletions.
4 changes: 4 additions & 0 deletions src/include/libradius.h
Expand Up @@ -73,6 +73,10 @@ RCSIDH(libradius_h, "$Id$")
#include <stdbool.h>
#include <signal.h>

#ifdef HAVE_LIMITS_H
# include <limits.h>
#endif

#include <freeradius-devel/threads.h>
#include <freeradius-devel/radius.h>
#include <freeradius-devel/token.h>
Expand Down
3 changes: 0 additions & 3 deletions src/lib/base64.c
Expand Up @@ -27,9 +27,6 @@ RCSID("$Id$")
#include <freeradius-devel/libradius.h>
#include <freeradius-devel/base64.h>

/* Get UCHAR_MAX from stdint.h, in src/include/missing.h */
#include <limits.h>

#define us(x) (uint8_t) x

/** Base 64 encode binary data
Expand Down
2 changes: 0 additions & 2 deletions src/main/xlat.c
Expand Up @@ -32,8 +32,6 @@ RCSID("$Id$")
#include <freeradius-devel/base64.h>

#include <ctype.h>
#include <limits.h>

typedef struct xlat_t {
char name[MAX_STRING_LEN]; //!< Name of the xlat expansion.
int length; //!< Length of name.
Expand Down
2 changes: 0 additions & 2 deletions src/modules/rlm_attr_filter/rlm_attr_filter.c
Expand Up @@ -31,8 +31,6 @@ RCSID("$Id$")

#include <ctype.h>
#include <fcntl.h>
#include <limits.h>


/*
* Define a structure with the module configuration, so it can
Expand Down
4 changes: 0 additions & 4 deletions src/modules/rlm_eap/libeap/eap_tls.h
Expand Up @@ -43,10 +43,6 @@ USES_APPLE_DEPRECATED_API /* OpenSSL API has been deprecated by Apple */
#include <sys/time.h>
#include <arpa/inet.h>

#ifdef HAVE_LIMITS_H
#include <limits.h>
#endif

#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
Expand Down
1 change: 0 additions & 1 deletion src/modules/rlm_files/rlm_files.c
Expand Up @@ -28,7 +28,6 @@ RCSID("$Id$")

#include <ctype.h>
#include <fcntl.h>
#include <limits.h>

typedef struct rlm_files_t {
char *compat_mode;
Expand Down
1 change: 0 additions & 1 deletion src/modules/rlm_radutmp/rlm_radutmp.c
Expand Up @@ -28,7 +28,6 @@ RCSID("$Id$")
#include <freeradius-devel/rad_assert.h>

#include <fcntl.h>
#include <limits.h>

#include "config.h"

Expand Down

0 comments on commit c506c79

Please sign in to comment.