Skip to content

Commit 1fa8ab5

Browse files
author
Nikos Mavrogiannopoulos
committed
removed irrelevant macros from documentation
1 parent 6dc008a commit 1fa8ab5

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

lib/avpair.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
#include <radcli/radcli.h>
1818
#include "util.h"
1919

20+
#define PARSE_MODE_NAME 0
21+
#define PARSE_MODE_EQUAL 1
22+
#define PARSE_MODE_VALUE 2
23+
#define PARSE_MODE_INVALID 3
24+
2025
/**
2126
* @defgroup radcli-api Main API
2227
* @brief Main API Functions
@@ -505,11 +510,6 @@ static void rc_fieldcpy(char *string, char const **uptr, char const *stopat, siz
505510
return;
506511
}
507512

508-
#define PARSE_MODE_NAME 0
509-
#define PARSE_MODE_EQUAL 1
510-
#define PARSE_MODE_VALUE 2
511-
#define PARSE_MODE_INVALID 3
512-
513513
/** Parses the buffer to extract the attribute-value pairs
514514
*
515515
* @param rh a handle to parsed configuration.

lib/sendserver.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
*
1313
*/
1414

15-
/**
16-
* @defgroup radcli-api Main API
17-
* @brief Main API Functions
18-
*
19-
* @{
20-
*/
21-
2215
#include <includes.h>
2316
#include <radcli/radcli.h>
2417
#include <pathnames.h>
@@ -27,10 +20,18 @@
2720
#include "rc-md5.h"
2821

2922
#define SA(p) ((struct sockaddr *)(p))
23+
#define SCLOSE(fd) if (sfuncs->close_fd) sfuncs->close_fd(fd)
3024

3125
static void rc_random_vector (unsigned char *);
3226
static int rc_check_reply (AUTH_HDR *, int, char const *, unsigned char const *, unsigned char);
3327

28+
/**
29+
* @defgroup radcli-api Main API
30+
* @brief Main API Functions
31+
*
32+
* @{
33+
*/
34+
3435
/** Packs an attribute value pair list into a buffer
3536
*
3637
* @param vp a pointer to a VALUE_PAIR.
@@ -277,8 +278,6 @@ static int populate_ctx(RC_AAA_CTX **ctx, char secret[MAX_SECRET_LENGTH+1], uint
277278
return OK_RC;
278279
}
279280

280-
#define SCLOSE(fd) if (sfuncs->close_fd) sfuncs->close_fd(fd)
281-
282281
/** Sends a request to a RADIUS server and waits for the reply
283282
*
284283
* @param rh a handle to parsed configuration

0 commit comments

Comments
 (0)