Skip to content

Commit 94998a2

Browse files
committed
remove duplicate headers
perl -ni -e 'print unless (/<(stdbool|stdint|stddef|string).h>/)' $(git grep -l stdbool.h src | grep '\.[ch]' | egrep -v 'build|autoconf' )
1 parent 8bebb8e commit 94998a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+0
-84
lines changed

src/bin/radict.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ RCSID("$Id$")
3131
#include <freeradius-devel/util/dict_priv.h>
3232
#include <dirent.h>
3333
#include <sys/stat.h>
34-
#include <stdbool.h>
3534

3635
#ifdef HAVE_GETOPT_H
3736
# include <getopt.h>

src/bin/radlock.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ RCSID("$Id$")
3333

3434
#include <ctype.h>
3535
#include <stdarg.h>
36-
#include <stdbool.h>
3736
#include <sys/ipc.h>
3837
#include <sys/sem.h>
3938

src/lib/eap/compose.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
* @copyright 2019 The FreeRADIUS server project
2424
*/
2525

26-
#include <stdbool.h>
2726

2827
#include "types.h"
2928

src/lib/eap_aka_sim/crypto.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,8 +1339,6 @@ void fr_aka_sim_crypto_keys_log(request_t *request, fr_aka_sim_keys_t *keys)
13391339
/*
13401340
* cc crypto.c fips186prf.c -g3 -Wall -DHAVE_DLFCN_H -DTESTING_SIM_CRYPTO -DWITH_TLS -I../../../../ -I../../../ -I ../base/ -I /usr/local/opt/openssl/include/ -include ../include/build.h -L /usr/local/opt/openssl/lib/ -l ssl -l crypto -l talloc -L ../../../../../build/lib/local/.libs/ -lfreeradius-server -lfreeradius-tls -lfreeradius-util -o test_sim_crypto && ./test_sim_crypto
13411341
*/
1342-
#include <stddef.h>
1343-
#include <stdbool.h>
13441342
#include <freeradius-devel/util/test/acutest.h>
13451343

13461344
/*

src/lib/eap_aka_sim/id.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,6 @@ int fr_aka_sim_id_3gpp_pseudonym_decrypt(char out[AKA_SIM_IMSI_MAX_LEN + 1],
670670
/*
671671
* cc id.c -g3 -Wall -DHAVE_DLFCN_H -DTESTING_SIM_ID -DWITH_TLS -I../../../../ -I../../../ -I ../base/ -I /usr/local/opt/openssl/include/ -include ../include/build.h -L /usr/local/opt/openssl/lib/ -l ssl -l crypto -l talloc -L ../../../../../build/lib/local/.libs/ -lfreeradius-server -lfreeradius-tls -lfreeradius-util -o test_sim_id && ./test_sim_id
672672
*/
673-
#include <stddef.h>
674-
#include <stdbool.h>
675673
#include <freeradius-devel/util/test/acutest.h>
676674

677675
void test_encrypt_decypt_key0(void)

src/lib/io/atomic_queue.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
*/
2626
RCSIDH(atomic_queue_h, "$Id$")
2727

28-
#include <stdbool.h>
2928

3029
#ifdef HAVE_STDATOMIC_H
3130
# include <stdatomic.h>

src/lib/io/queue.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
*/
2626
RCSIDH(queue_h, "$Id$")
2727

28-
#include <stdbool.h>
2928
#include <freeradius-devel/io/atomic_queue.h>
3029
#include <freeradius-devel/util/talloc.h>
3130

src/lib/io/ring_buffer.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
RCSIDH(ring_buffer_h, "$Id$")
2828

2929
#include <freeradius-devel/util/talloc.h>
30-
#include <stdbool.h>
31-
#include <stdint.h>
3230

3331
#ifdef __cplusplus
3432
extern "C" {

src/lib/server/cf_parse.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ RCSIDH(cf_parse_h, "$Id$")
2727

2828
typedef struct conf_parser_s conf_parser_t;
2929

30-
#include <stddef.h>
31-
#include <stdint.h>
32-
#include <stdbool.h>
3330
#include <unistd.h>
3431
#include <sys/time.h>
3532
#include <freeradius-devel/util/rb.h>

src/lib/server/cf_util.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ typedef struct cf_pair CONF_PAIR; //!< #CONF_ITEM with an attribute, an operator
3939
typedef struct cf_data CONF_DATA; //!< #CONF_ITEM used to associate arbitrary data
4040
///< with a #CONF_PAIR or #CONF_SECTION.
4141

42-
#include <stddef.h>
43-
#include <stdint.h>
44-
#include <stdbool.h>
4542
#include <unistd.h>
4643
#include <sys/time.h>
4744

0 commit comments

Comments
 (0)