Make argument of DohWrite() const.
Writing a buffer to a DOH object doesn't modify so it should be const. This allows the code using const pointers to pass them to DohWrite() without neither the casts nor gcc warnings. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12167 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
1f939323a4
commit
ac5ddb0315
5 changed files with 5 additions and 5 deletions
|
|
@ -645,7 +645,7 @@ int DohRead(DOH *obj, void *buffer, int length) {
|
|||
* DohWrite()
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
int DohWrite(DOH *obj, void *buffer, int length) {
|
||||
int DohWrite(DOH *obj, const void *buffer, int length) {
|
||||
DohBase *b = (DohBase *) obj;
|
||||
DohObjInfo *objinfo;
|
||||
if (DohCheck(obj)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue