OSSP CVS Repository

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

Check-in Number: 4236
Date: 2001-Jul-23 18:40:38 (local)
2001-Jul-23 16:40:38 (UTC)
User:simons
Branch:
Comment: Use 'll' modifier for formatting long long values rather than 'L', which seems to be unsupported on FreeBSD and Solaris.
Tickets:
Inspections:
Files:
ossp-pkg/xds/xml-decode-int64.c      1.1 -> 1.2     1 inserted, 1 deleted
ossp-pkg/xds/xml-decode-uint64.c      1.1 -> 1.2     1 inserted, 1 deleted
ossp-pkg/xds/xml-encode-int64.c      1.1 -> 1.2     1 inserted, 1 deleted
ossp-pkg/xds/xml-encode-uint64.c      1.1 -> 1.2     1 inserted, 1 deleted

ossp-pkg/xds/xml-decode-int64.c 1.1 -> 1.2

--- xml-decode-int64.c   2001/07/23 16:17:43     1.1
+++ xml-decode-int64.c   2001/07/23 16:40:38     1.2
@@ -47,7 +47,7 @@
     /* Format value into buffer. */
 
     value = va_arg(*args, xds_int64_t*);
-    rc = sscanf(buffer, "<int64>%Ld</int64>%n", value, &len);
+    rc = sscanf(buffer, "<int64>%lld</int64>%n", value, &len);
     if (rc <= 0)
         return XDS_ERR_UNDERFLOW;
 


ossp-pkg/xds/xml-decode-uint64.c 1.1 -> 1.2

--- xml-decode-uint64.c  2001/07/23 16:17:43     1.1
+++ xml-decode-uint64.c  2001/07/23 16:40:38     1.2
@@ -47,7 +47,7 @@
     /* Format value into buffer. */
 
     value = va_arg(*args, xds_uint64_t*);
-    rc = sscanf(buffer, "<uint64>%Lu</uint64>%n", value, &len);
+    rc = sscanf(buffer, "<uint64>%llu</uint64>%n", value, &len);
     if (rc <= 0)
         return XDS_ERR_UNDERFLOW;
 


ossp-pkg/xds/xml-encode-int64.c 1.1 -> 1.2

--- xml-encode-int64.c   2001/07/23 16:17:43     1.1
+++ xml-encode-int64.c   2001/07/23 16:40:38     1.2
@@ -46,7 +46,7 @@
     /* Format value into buffer. */
 
     value = va_arg(*args, xds_int64_t);
-    rc = snprintf(buffer, buffer_size, "<int64>%Ld</int64>", value);
+    rc = snprintf(buffer, buffer_size, "<int64>%lld</int64>", value);
     if (rc < 0)
         return buffer_size*2;
     assert(rc >= 15);


ossp-pkg/xds/xml-encode-uint64.c 1.1 -> 1.2

--- xml-encode-uint64.c  2001/07/23 16:17:43     1.1
+++ xml-encode-uint64.c  2001/07/23 16:40:38     1.2
@@ -46,7 +46,7 @@
     /* Format value into buffer. */
 
     value = va_arg(*args, xds_uint64_t);
-    rc = snprintf(buffer, buffer_size, "<uint64>%Lu</uint64>", value);
+    rc = snprintf(buffer, buffer_size, "<uint64>%llu</uint64>", value);
     if (rc < 0)
         return buffer_size*2;
     assert(rc >= 15);

CVSTrac 2.0.1