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
|
|
@ -221,7 +221,7 @@ extern int DohDelslice(DOH *obj, int sindex, int eindex);
|
|||
|
||||
/* File methods */
|
||||
|
||||
extern int DohWrite(DOHFile * obj, void *buffer, int length);
|
||||
extern int DohWrite(DOHFile * obj, const void *buffer, int length);
|
||||
extern int DohRead(DOHFile * obj, void *buffer, int length);
|
||||
extern int DohSeek(DOHFile * obj, long offset, int whence);
|
||||
extern long DohTell(DOHFile * obj);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue