X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdynamic-string.c;h=7f5e3fbaac44b830d0cf9e527f0b3abc9fedbcb1;hb=e0668bd1d448d6f17c20b9c7ba91344180809061;hp=527dee8ab09e288d62195f37e89414281bf2933e;hpb=58fda1dab104041fc693032475ec4662c1a52849;p=openvswitch diff --git a/lib/dynamic-string.c b/lib/dynamic-string.c index 527dee8a..7f5e3fba 100644 --- a/lib/dynamic-string.c +++ b/lib/dynamic-string.c @@ -219,6 +219,12 @@ ds_cstr(struct ds *ds) return ds->string; } +const char * +ds_cstr_ro(const struct ds *ds) +{ + return ds_cstr((struct ds *) ds); +} + /* Returns a null-terminated string representing the current contents of 'ds', * which the caller is expected to free with free(), then clears the contents * of 'ds'. */