ofp-msgs: Update for OpenFlow 1.1 & 1.2 Port Desc Stats
[sliver-openvswitch.git] / lib / dynamic-string.c
index e7ad73c..b648eef 100644 (file)
@@ -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',