Commit 5e7bb1fd 5e7bb1fd972b8efbd58fe2b618a5f217a3fc98e5 by Sergey Poznyakoff

(buffer_grow, _gsasl_strerror): Fixed declarations.

1 parent f4b300d5
...@@ -104,7 +104,7 @@ _gsasl_destroy (stream_t stream) ...@@ -104,7 +104,7 @@ _gsasl_destroy (stream_t stream)
104 #define buffer_drop(s) s->level = 0 104 #define buffer_drop(s) s->level = 0
105 105
106 int 106 int
107 buffer_grow (struct _gsasl_stream *s, char *ptr, size_t size) 107 buffer_grow (struct _gsasl_stream *s, const char *ptr, size_t size)
108 { 108 {
109 if (!s->buffer) 109 if (!s->buffer)
110 { 110 {
...@@ -255,7 +255,6 @@ _gsasl_write (stream_t stream, const char *iptr, size_t isize, ...@@ -255,7 +255,6 @@ _gsasl_write (stream_t stream, const char *iptr, size_t isize,
255 off_t offset, size_t *nbytes) 255 off_t offset, size_t *nbytes)
256 { 256 {
257 int rc; 257 int rc;
258 size_t total = 0;
259 struct _gsasl_stream *s = stream_get_owner (stream); 258 struct _gsasl_stream *s = stream_get_owner (stream);
260 259
261 rc = buffer_grow (s, iptr, isize); 260 rc = buffer_grow (s, iptr, isize);
...@@ -323,7 +322,7 @@ _gsasl_open (stream_t stream) ...@@ -323,7 +322,7 @@ _gsasl_open (stream_t stream)
323 } 322 }
324 323
325 int 324 int
326 _gsasl_strerror (stream_t stream, const char **pstr) 325 _gsasl_strerror (stream_t stream, char **pstr)
327 { 326 {
328 struct _gsasl_stream *s = stream_get_owner (stream); 327 struct _gsasl_stream *s = stream_get_owner (stream);
329 *pstr = gsasl_strerror (s->last_err); 328 *pstr = gsasl_strerror (s->last_err);
......