From 41ccb665db265e15f4cb40d81311415c712e1955 Mon Sep 17 00:00:00 2001 From: ambrop7 Date: Fri, 5 Oct 2012 01:17:27 +0000 Subject: [PATCH] ncd: NCDAst: cosmetic changes --- ncd/NCDAst.c | 2 +- ncd/NCDAst.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ncd/NCDAst.c b/ncd/NCDAst.c index f8bcda8e1..da4f0fbd6 100644 --- a/ncd/NCDAst.c +++ b/ncd/NCDAst.c @@ -129,7 +129,7 @@ int NCDValue_InitStringBin (NCDValue *o, const uint8_t *str, size_t len) return 1; } -char * NCDValue_StringValue (NCDValue *o) +const char * NCDValue_StringValue (NCDValue *o) { ASSERT(o->type == NCDVALUE_STRING) diff --git a/ncd/NCDAst.h b/ncd/NCDAst.h index 8ff801f95..1e0fe8f16 100644 --- a/ncd/NCDAst.h +++ b/ncd/NCDAst.h @@ -144,7 +144,7 @@ void NCDValue_Free (NCDValue *o); int NCDValue_Type (NCDValue *o); int NCDValue_InitString (NCDValue *o, const char *str) WARN_UNUSED; int NCDValue_InitStringBin (NCDValue *o, const uint8_t *str, size_t len) WARN_UNUSED; -char * NCDValue_StringValue (NCDValue *o); +const char * NCDValue_StringValue (NCDValue *o); size_t NCDValue_StringLength (NCDValue *o); void NCDValue_InitList (NCDValue *o); size_t NCDValue_ListCount (NCDValue *o);