diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-02-05 11:10:02 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-02-05 11:10:02 +0100 |
commit | 3d954bfd2f658ac05a0f20a1241738ed3e3fdd28 (patch) | |
tree | d95b364fbab298c9b94c9c729afc98904c7c5bb0 /lib/util.c | |
parent | 67bdfa83f1879312fef0fbac769f6fb45df12d1a (diff) |
Move lib to the root.
Diffstat (limited to 'lib/util.c')
-rw-r--r-- | lib/util.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/util.c b/lib/util.c deleted file mode 100644 index 70d815c..0000000 --- a/lib/util.c +++ /dev/null @@ -1,25 +0,0 @@ -/* Copyright 2012-2013 NORDUnet A/S. All rights reserved. - See LICENSE for licensing information. */ - -#include <stdlib.h> -#include <string.h> -#include <radsec/radsec.h> -#include <radsec/radsec-impl.h> -#include "util.h" - -char * -rs_strdup (struct rs_context *ctx, const char *s) -{ - size_t len; - char *buf; - - len = strlen (s); - buf = rs_malloc (ctx, len + 1); - - if (buf != NULL) - memcpy (buf, s, len + 1); - else - rs_err_ctx_push (ctx, RSE_NOMEM, __func__); - - return buf; -} |