OSSP CVS Repository

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

Check-in Number: 2746
Date: 2002-Nov-07 07:24:08 (local)
2002-Nov-07 06:24:08 (UTC)
User:rse
Branch:
Comment: Fixed two compile-time warnings.

Submitted by: Alvaro Lopez Ortega <alvaro@alobbs.com>

Tickets:
Inspections:
Files:
ossp-pkg/sa/ChangeLog      1.10 -> 1.11     5 inserted, 0 deleted
ossp-pkg/sa/sa.c      1.67 -> 1.68     3 inserted, 3 deleted

ossp-pkg/sa/ChangeLog 1.10 -> 1.11

--- ChangeLog    2002/11/01 08:44:02     1.10
+++ ChangeLog    2002/11/07 06:24:08     1.11
@@ -11,6 +11,11 @@
   This is a list of all changes to OSSP sa.
   For a more brief summary please have a look at the NEWS file.
 
+  Changes between 1.0.0 and 1.0.1 (01-Nov-2002 to xx-Nov-2002)
+
+   o Fixed two compile-time warnings.
+     [Alvaro Lopez Ortega <alvaro@alobbs.com>]
+
   Changes between 0.9.3 and 1.0.0 (30-Oct-2002 to 01-Nov-2002)
    
    o Consistently return SA_ERR_MEM instead of SA_ERR_SYS


ossp-pkg/sa/sa.c 1.67 -> 1.68

--- sa.c 2002/10/31 07:20:10     1.67
+++ sa.c 2002/11/07 06:24:08     1.68
@@ -1966,8 +1966,8 @@
     sa_writef_cb_t *ctx = (sa_writef_cb_t *)_ctx;
 
     if ((ctx->rv = sa_write(ctx->sa, buffer, bufsize, &n)) != SA_OK)
-        n = -1;
-    return n;
+        return -1;
+    return (int)n;
 }
 
 /* write formatted string to socket (convinience function) */
@@ -2198,7 +2198,7 @@
 
     /* format string into temporary buffer */
     va_start(ap, cpFmt);
-    nBuf = sa_mvsnprintf(NULL, NULL, cpFmt, ap);
+    nBuf = sa_mvsnprintf(NULL, 0, cpFmt, ap);
     va_end(ap);
     if ((nBuf+1) > sizeof(caBuf)) {
         /* requires a larger buffer, so allocate dynamically */

CVSTrac 2.0.1