OSSP CVS Repository

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

Check-in Number: 1066
Date: 2001-Oct-04 13:04:59 (local)
2001-Oct-04 11:04:59 (UTC)
User:rse
Branch:
Comment: reduce warnings
Tickets:
Inspections:
Files:
ossp-pkg/sa/sa_test.c      1.1 -> 1.2     1 inserted, 2 deleted

ossp-pkg/sa/sa_test.c 1.1 -> 1.2

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

CVSTrac 2.0.1