Selaa lähdekoodia

ncd: NCDAst: cosmetic changes

ambrop7 13 vuotta sitten
vanhempi
sitoutus
41ccb665db
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      ncd/NCDAst.c
  2. 1 1
      ncd/NCDAst.h

+ 1 - 1
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)
     

+ 1 - 1
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);