--- sa_test.c 2001/10/02 18:37:19 1.1
+++ sa_test.c 2001/10/04 11:04:59 1.2
@@ -32,7 +32,6 @@
char caTime[15+1];
time_t now;
struct tm *tm;
- char caHost;
struct utsname uts;
char *cp;
char caTag[32+1];
@@ -69,7 +68,7 @@
sprintf(caBuf, "<%d>%s %s %s%s", LOG_MAIL|LOG_EMERG, caTime, cpHost, caTag, argv[2]);
fprintf(stderr, "%s\n", caBuf);
nBuf = strlen(caBuf);
- if (sa_writeto(sa, caBuf, nBuf, &n, ra) != SA_OK)
+ if (sa_writeto(sa, caBuf, nBuf, (size_t *)&n, ra) != SA_OK)
die("sa_writeto");
if (sa_destroy(sa) != SA_OK)
die("sa_destroy");
|