(stream_set_strerror,stream_strerror): Changed prototype
Showing
2 changed files
with
4 additions
and
4 deletions
... | @@ -127,7 +127,7 @@ extern int stream_set_flush __P ((stream_t, | ... | @@ -127,7 +127,7 @@ extern int stream_set_flush __P ((stream_t, |
127 | int (*_flush) __PMT ((stream_t)), void *owner)); | 127 | int (*_flush) __PMT ((stream_t)), void *owner)); |
128 | 128 | ||
129 | extern int stream_set_strerror __P ((stream_t stream, | 129 | extern int stream_set_strerror __P ((stream_t stream, |
130 | int (*fp) (stream_t, const char **), void *owner)); | 130 | int (*fp) (stream_t, char **), void *owner)); |
131 | 131 | ||
132 | extern int stream_sequential_read __P((stream_t stream, | 132 | extern int stream_sequential_read __P((stream_t stream, |
133 | char *buf, size_t size, size_t *nbytes)); | 133 | char *buf, size_t size, size_t *nbytes)); |
... | @@ -138,7 +138,7 @@ extern int stream_sequential_readline __P((stream_t stream, | ... | @@ -138,7 +138,7 @@ extern int stream_sequential_readline __P((stream_t stream, |
138 | extern int stream_sequential_write __P((stream_t stream, | 138 | extern int stream_sequential_write __P((stream_t stream, |
139 | char *buf, size_t size)); | 139 | char *buf, size_t size)); |
140 | 140 | ||
141 | extern int stream_strerror __P((stream_t stream, const char **p)); | 141 | extern int stream_strerror __P((stream_t stream, char **p)); |
142 | 142 | ||
143 | #ifdef __cplusplus | 143 | #ifdef __cplusplus |
144 | } | 144 | } | ... | ... |
... | @@ -643,7 +643,7 @@ stream_set_flags (stream_t stream, int fl) | ... | @@ -643,7 +643,7 @@ stream_set_flags (stream_t stream, int fl) |
643 | 643 | ||
644 | int | 644 | int |
645 | stream_set_strerror (stream_t stream, | 645 | stream_set_strerror (stream_t stream, |
646 | int (*fp) (stream_t, const char **), void *owner) | 646 | int (*fp) (stream_t, char **), void *owner) |
647 | { | 647 | { |
648 | if (stream == NULL) | 648 | if (stream == NULL) |
649 | return EINVAL; | 649 | return EINVAL; |
... | @@ -703,7 +703,7 @@ stream_sequential_write (stream_t stream, char *buf, size_t size) | ... | @@ -703,7 +703,7 @@ stream_sequential_write (stream_t stream, char *buf, size_t size) |
703 | } | 703 | } |
704 | 704 | ||
705 | int | 705 | int |
706 | stream_strerror (stream_t stream, const char **p) | 706 | stream_strerror (stream_t stream, char **p) |
707 | { | 707 | { |
708 | if (stream == NULL) | 708 | if (stream == NULL) |
709 | return EINVAL; | 709 | return EINVAL; | ... | ... |
-
Please register or sign in to post a comment