X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdynamic-string.c;h=7f5e3fbaac44b830d0cf9e527f0b3abc9fedbcb1;hb=d171b5846f4988e66c45a6ed5998bbaef82571f9;hp=527dee8ab09e288d62195f37e89414281bf2933e;hpb=1fd13cde12973420d573af8d161c612a9203b1cd;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'. */