Skip to content

Commit

Permalink
Determine if rad_fork/rad_waitpid definitions are actually needed
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 13, 2017
1 parent 3837394 commit 110a30e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 48 deletions.
12 changes: 0 additions & 12 deletions src/main/radattr.c
Expand Up @@ -44,18 +44,6 @@ typedef struct REQUEST REQUEST;
extern log_lvl_t rad_debug_lvl;

#include <sys/wait.h>
pid_t rad_fork(void);
pid_t rad_waitpid(pid_t pid, int *status);

pid_t rad_fork(void)
{
return fork();
}

pid_t rad_waitpid(pid_t pid, int *status)
{
return waitpid(pid, status, 0);
}

static ssize_t xlat_test(UNUSED void *instance, UNUSED REQUEST *request,
UNUSED char const *fmt, UNUSED char *out, UNUSED size_t outlen)
Expand Down
11 changes: 0 additions & 11 deletions src/main/radmin.c
Expand Up @@ -84,17 +84,6 @@ static bool echo = false;
static char const *secret = "testing123";

#include <sys/wait.h>
pid_t rad_fork(void)
{
return fork();
}

#ifdef HAVE_PTHREAD_H
pid_t rad_waitpid(pid_t pid, int *status)
{
return waitpid(pid, status, 0);
}
#endif

static void NEVER_RETURNS usage(int status)
{
Expand Down
11 changes: 0 additions & 11 deletions src/main/radwho.c
Expand Up @@ -62,17 +62,6 @@ bool log_stripped_names;
main_config_t main_config;

#include <sys/wait.h>
pid_t rad_fork(void)
{
return fork();
}

#ifdef HAVE_PTHREAD_H
pid_t rad_waitpid(pid_t pid, int *status)
{
return waitpid(pid, status, 0);
}
#endif

static struct radutmp_config_t {
char const *radutmp_fn;
Expand Down
14 changes: 0 additions & 14 deletions src/tests/map/map_unit.c
Expand Up @@ -40,20 +40,6 @@ RCSID("$Id$")

#include <sys/wait.h>

/* Linker hacks */

#ifdef HAVE_PTHREAD_H
pid_t rad_fork(void)
{
return fork();
}

pid_t rad_waitpid(pid_t pid, int *status)
{
return waitpid(pid, status, 0);
}
#endif

rlm_rcode_t indexed_modcall(UNUSED rlm_components_t comp, UNUSED int idx, UNUSED REQUEST *request)
{
return RLM_MODULE_OK;
Expand Down

0 comments on commit 110a30e

Please sign in to comment.