X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fdynamic-string.c;h=b648eef6549a28ab9c3c1b77e0f1beb1074ddcc3;hb=56de7118d0909425d714457f0cb470d69f069421;hp=e7ad73cd667996bd4f7628ed0bfb7ef34fb6503d;hpb=06d7ae7d9ba1c09c3ce5ad805a89ea564449795d;p=sliver-openvswitch.git diff --git a/lib/dynamic-string.c b/lib/dynamic-string.c index e7ad73cd6..b648eef65 100644 --- a/lib/dynamic-string.c +++ b/lib/dynamic-string.c @@ -311,7 +311,7 @@ ds_cstr(struct ds *ds) const char * ds_cstr_ro(const struct ds *ds) { - return ds_cstr((struct ds *) ds); + return ds_cstr(CONST_CAST(struct ds *, ds)); } /* Returns a null-terminated string representing the current contents of 'ds',