X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fdynamic-string.c;h=b648eef6549a28ab9c3c1b77e0f1beb1074ddcc3;hb=bc7a5acdff087b7e7a162da42ae608a83f3cf902;hp=e7ad73cd667996bd4f7628ed0bfb7ef34fb6503d;hpb=06d7ae7d9ba1c09c3ce5ad805a89ea564449795d;p=openvswitch diff --git a/lib/dynamic-string.c b/lib/dynamic-string.c index e7ad73cd..b648eef6 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',