aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorDavid M. Syzdek <david@syzdek.net>2022-03-08 21:59:57 -0900
committerDavid M. Syzdek <david@syzdek.net>2022-03-08 21:59:57 -0900
commit31567c07fb5ac7856e1a1e3b493aa309cf5e5280 (patch)
tree7853a3ee41d6f118fb4c39448b4e89c68429e89e /src
parent6373cd8f7fcea89c92dc72dc83bf44548993c3f8 (diff)
downloadtinyrad-31567c07fb5ac7856e1a1e3b493aa309cf5e5280.tar.gz
tinyrad-31567c07fb5ac7856e1a1e3b493aa309cf5e5280.tar.bz2
tinyrad-31567c07fb5ac7856e1a1e3b493aa309cf5e5280.tar.xz
tinyrad-31567c07fb5ac7856e1a1e3b493aa309cf5e5280.zip
utils: removing common.h and common.c
Diffstat (limited to 'src')
-rw-r--r--src/common.c74
-rw-r--r--src/common.h69
-rw-r--r--src/tinyrad-dict.c2
-rw-r--r--src/tinyrad-url.c2
-rw-r--r--src/tinyrad.c2
-rw-r--r--src/tinyradproxy.c2
6 files changed, 4 insertions, 147 deletions
diff --git a/src/common.c b/src/common.c
deleted file mode 100644
index 246e33b..0000000
--- a/src/common.c
+++ /dev/null
@@ -1,74 +0,0 @@
1/*
2 * Tiny RADIUS Client Library
3 * Copyright (C) 2021 David M. Syzdek <david@syzdek.net>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * * Neither the name of David M. Syzdek nor the
16 * names of its contributors may be used to endorse or promote products
17 * derived from this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR
23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31#define _SRC_UTILITIES_TINYRAD_URL_C 1
32#include "common.h"
33
34
35///////////////
36// //
37// Headers //
38// //
39///////////////
40#pragma mark - Headers
41
42#include <stdio.h>
43#include <stdlib.h>
44#include <stdarg.h>
45#include <string.h>
46#include <strings.h>
47#include <assert.h>
48
49
50///////////////////
51// //
52// Definitions //
53// //
54///////////////////
55#pragma mark - Definitions
56
57
58//////////////////
59// //
60// Prototypes //
61// //
62//////////////////
63#pragma mark - Prototypes
64
65
66/////////////////
67// //
68// Functions //
69// //
70/////////////////
71#pragma mark - Functions
72
73
74/* end of source */
diff --git a/src/common.h b/src/common.h
deleted file mode 100644
index fac149d..0000000
--- a/src/common.h
+++ /dev/null
@@ -1,69 +0,0 @@
1/*
2 * Tiny RADIUS Client Library
3 * Copyright (C) 2021 David M. Syzdek <david@syzdek.net>.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * * Neither the name of David M. Syzdek nor the
16 * names of its contributors may be used to endorse or promote products
17 * derived from this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
20 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
21 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR
23 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31#ifndef _SRC_UTILITIES_COMMON_H
32#define _SRC_UTILITIES_COMMON_H 1
33
34
35///////////////
36// //
37// Headers //
38// //
39///////////////
40#pragma mark - Headers
41
42#include <tinyrad_compat.h>
43
44#ifdef HAVE_CONFIG_H
45#include <config.h>
46#endif
47
48#include <tinyrad.h>
49#include <tinyrad_internal.h>
50#include <tinyrad_utils.h>
51
52
53///////////////////
54// //
55// Definitions //
56// //
57///////////////////
58#pragma mark - Definitions
59
60
61//////////////////
62// //
63// Prototypes //
64// //
65//////////////////
66#pragma mark - Prototypes
67
68
69#endif /* end of header */
diff --git a/src/tinyrad-dict.c b/src/tinyrad-dict.c
index 89e9d07..cea7c45 100644
--- a/src/tinyrad-dict.c
+++ b/src/tinyrad-dict.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
diff --git a/src/tinyrad-url.c b/src/tinyrad-url.c
index 6337e67..91b4bf0 100644
--- a/src/tinyrad-url.c
+++ b/src/tinyrad-url.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
diff --git a/src/tinyrad.c b/src/tinyrad.c
index be6bed9..fd8ba31 100644
--- a/src/tinyrad.c
+++ b/src/tinyrad.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdarg.h> 44#include <stdarg.h>
diff --git a/src/tinyradproxy.c b/src/tinyradproxy.c
index 9b88b13..656a473 100644
--- a/src/tinyradproxy.c
+++ b/src/tinyradproxy.c
@@ -38,7 +38,7 @@
38/////////////// 38///////////////
39#pragma mark - Headers 39#pragma mark - Headers
40 40
41#include "common.h" 41#include <tinyrad_utils.h>
42 42
43#include <stdio.h> 43#include <stdio.h>
44#include <stdlib.h> 44#include <stdlib.h>