cups/snprintf.c uses C++-style comment

Albert Chin china at foo.com
Fri May 12 17:43:22 PDT 2006


Not all C compilers accept C++ comments, especially those old enough
to require cups/snprintf.c.

-- 
albert chin

-- snip snip
Index: cups/snprintf.c
===================================================================
--- cups/snprintf.c	(revision 5521)
+++ cups/snprintf.c	(working copy)
@@ -96,7 +96,7 @@
 
       if (*format == '*')
       {
-        // Get width from argument...
+        /* Get width from argument... */
 	format ++;
 	width = va_arg(ap, int);
 
@@ -125,7 +125,7 @@
 
         if (*format == '*')
 	{
-          // Get precision from argument...
+          /* Get precision from argument... */
 	  format ++;
 	  prec = va_arg(ap, int);
 




More information about the cups mailing list