From 8e1e865a25ec4e88f64b149764c239e286e42c49 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Sat, 2 Apr 2016 14:06:30 +0200 Subject: lib: Move strdup to utils This moves strdup to utils to make it globally available. --- include/ouroboros/common.h | 2 +- include/ouroboros/utils.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ouroboros/common.h b/include/ouroboros/common.h index 7114ed73..658c3618 100644 --- a/include/ouroboros/common.h +++ b/include/ouroboros/common.h @@ -45,7 +45,7 @@ struct qos_spec { /* FIXME: What should be configurable in the DIF? */ struct dif_config { /* general data */ - struct qos_spec * qosspecs; + char * dif_name; /* TODO: efficient policies */ diff --git a/include/ouroboros/utils.h b/include/ouroboros/utils.h index 0e50c039..2eaccae9 100644 --- a/include/ouroboros/utils.h +++ b/include/ouroboros/utils.h @@ -25,3 +25,6 @@ * need when represented as a string */ int n_digits(unsigned i); + +/* Returns a copy of the source string */ +char * strdup(const char * src); -- cgit v1.2.3