OSSP CVS Repository

ossp - Check-in [2821]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2821
Date: 2002-Nov-14 10:22:42 (local)
2002-Nov-14 09:22:42 (UTC)
User:rse
Branch:
Comment: remove remaining GCC warnings
Tickets:
Inspections:
Files:
ossp-pkg/sio/al.c      1.34 -> 1.35     4 inserted, 4 deleted
ossp-pkg/sio/sio.c      1.10 -> 1.11     1 inserted, 1 deleted

ossp-pkg/sio/al.c 1.34 -> 1.35

--- al.c 2002/11/05 14:51:37     1.34
+++ al.c 2002/11/14 09:22:42     1.35
@@ -219,7 +219,7 @@
  * only the control structure will be freed later
  */
 static
-al_rc_t make_buffer(al_t *al, char *p, size_t n, void (*freemem)(char *, size_t, void *), void *u, al_buffer_t **bufp)
+al_rc_t make_buffer(al_t *al, char *p, size_t n, void (*freemem_cb)(char *, size_t, void *), void *u, al_buffer_t **bufp)
 {
     al_buffer_t *buf;
 
@@ -228,7 +228,7 @@
 
     buf->mem      = p;
 
-    buf->freemem  = freemem;
+    buf->freemem  = freemem_cb;
     buf->userdata = u;
     buf->size     = n;
     buf->usecount = 0;
@@ -580,7 +580,7 @@
  *
  */
 al_rc_t al_attach_buffer(al_t *al, char *p, size_t n, al_label_t label,
-                         void (*freemem)(char *, size_t, void *), void *u)
+                         void (*freemem_cb)(char *, size_t, void *), void *u)
 {
     al_rc_t rc;
     al_buffer_t *buf;
@@ -590,7 +590,7 @@
     if (al == NULL || p == NULL || n <= 0)
         return AL_RC(AL_ERR_ARG);
 
-    rc = make_buffer(al, p, n, freemem, u, &buf);
+    rc = make_buffer(al, p, n, freemem_cb, u, &buf);
     if (rc != AL_OK)
         return AL_RC(rc);
     rc = new_chunk(al,buf,label,&cur);


ossp-pkg/sio/sio.c 1.10 -> 1.11

--- sio.c        2002/11/08 19:46:42     1.10
+++ sio.c        2002/11/14 09:22:42     1.11
@@ -500,7 +500,7 @@
     return SIO_RC(rc);
 }
 
-al_rc_t sio_readchunk(al_chunk_t *alc, void *u)
+static al_rc_t sio_readchunk(al_chunk_t *alc, void *u)
 {
     sio_t *sio = (sio_t *)u;
     size_t len;

CVSTrac 2.0.1