OSSP CVS Repository

ossp - Difference in ossp-pkg/str/str_format.c versions 1.30 and 1.31
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/str/str_format.c 1.30 -> 1.31

--- str_format.c 2005/01/24 15:22:19     1.30
+++ str_format.c 2005/10/03 07:34:43     1.31
@@ -89,6 +89,13 @@
  * on-the-fly.
  */
 
+#include <stdio.h>
+#include <stdlib.h>
+#include <stdarg.h>
+#include <string.h>
+#include <ctype.h>
+#include <math.h>
+
 #include "str_p.h"
 
 /* types which are locally use */
@@ -143,10 +150,10 @@
 {
     double fraction;
     double integral;
-    long trunc;
+    long truncated;
 
-    trunc = (long)arg;
-    integral = (double)trunc;
+    truncated = (long)arg;
+    integral = (double)truncated;
     fraction = arg - integral;
     if (iptr != NULL)
         *iptr = integral;

CVSTrac 2.0.1