[xiph-cvs] cvs commit: libshout/include/shout shout.h
Michael Smith
msmith at xiph.org
Thu Oct 3 06:53:25 PDT 2002
msmith 02/10/03 09:53:25
Modified: src shout.c
include/shout shout.h
Log:
Fix bug (in documentation and implementation) of shout_send_raw
Revision Changes Path
1.10 +2 -2 libshout/src/shout.c
Index: shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- shout.c 3 Oct 2002 05:10:19 -0000 1.9
+++ shout.c 3 Oct 2002 13:53:25 -0000 1.10
@@ -155,8 +155,8 @@
ssize_t ret;
size_t remaining = len;
- if (!self)
- return SHOUTERR_INSANE;
+ if (!self)
+ return -1;
while(remaining) {
ret = sock_write_bytes(self->socket, data, remaining);
<p><p>1.11 +3 -1 libshout/include/shout/shout.h
Index: shout.h
===================================================================
RCS file: /usr/local/cvsroot/libshout/include/shout/shout.h,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- shout.h 16 Aug 2002 15:47:06 -0000 1.10
+++ shout.h 3 Oct 2002 13:53:25 -0000 1.11
@@ -108,7 +108,9 @@
int shout_send(shout_t *self, const unsigned char *data, size_t len);
/* Send unparsed data to the server. Do not use this unless you know
- * what you are doing. */
+ * what you are doing.
+ * Returns the number of bytes written, or < 0 on error.
+ */
ssize_t shout_send_raw(shout_t *self, const unsigned char *data, size_t len);
/* Puts caller to sleep until it is time to send more data to the server */
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list