OSSP CVS Repository

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

Check-in Number: 2614
Date: 2002-Oct-18 13:03:07 (local)
2002-Oct-18 11:03:07 (UTC)
User:rse
Branch:
Comment: shutdown remaining gcc warnings
Tickets:
Inspections:
Files:
ossp-pkg/sio/al_test.c      1.10 -> 1.11     6 inserted, 6 deleted

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

--- al_test.c    2002/10/18 11:01:59     1.10
+++ al_test.c    2002/10/18 11:03:07     1.11
@@ -38,7 +38,7 @@
 
 #define S(s) s, strlen(s)
 
-const char *fill(char *p, int n)
+static const char *fill(char *p, int n)
 {
     static char buf[4 * 80 + 1];
     int k;
@@ -60,7 +60,7 @@
     return (const char *)buf;
 }
 
-al_rc_t printchunk(al_chunk_t *alc, void *u)
+static al_rc_t printchunk(al_chunk_t *alc, void *u)
 {
     size_t len, pre, post;
 
@@ -87,7 +87,7 @@
 printf("-DUMP(%s)\n\n",tag);\
 } while (0)
 
-void print(const char *tag, al_t *al)
+static void print(const char *tag, al_t *al)
 {
     char *buf;
     size_t n, len;
@@ -107,7 +107,7 @@
     free(buf);
 }
 
-void checklen(const char *tag, al_t *al)
+static void checklen(const char *tag, al_t *al)
 {
     al_tx_t *tx; 
     al_chunk_t *cur;
@@ -126,10 +126,10 @@
 
     if (total != total2)
         printf("ERROR: al_bytes(%s=%p): count %d != sum %d\n",
-            tag,al,total,total2);
+            tag,(void *)al,total,total2);
 }
 
-int main()
+int main(int argc, char *argv[])
 {
     al_rc_t rc;
     al_t *al, *al2, *al3, *al4;

CVSTrac 2.0.1