--- 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;
|