This is a multi-part message in MIME format.
--------------020303030609050904070206
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

This patch removes the const from the name strings in SANE_Device.
I didn't commit it because it might breaks stuff. However, I believe the new 
definition is actually correct. On my tree, the number of warnings drop from 
137 
to 94. It also introduces a few more warnings, but these can be fixed too.
If no one objects, I will commit it in a few days.

Frank.

--------------020303030609050904070206
Content-Type: text/plain;
 name="sane1.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="sane1.diff"

Index: include/sane/sane.h
===================================================================
RCS file: /cvsroot/sane/sane-backends/include/sane/sane.h,v
retrieving revision 1.5
diff -u -3 -p -B -b -u -r1.5 sane.h
--- include/sane/sane.h 13 Nov 2004 19:04:44 -0000      1.5
+++ include/sane/sane.h 13 Nov 2004 19:21:31 -0000
@@ -110,10 +110,10 @@ SANE_Unit;
 
 typedef struct
   {
-    SANE_String_Const name;    /* unique device name */
-    SANE_String_Const vendor;  /* device vendor string */
-    SANE_String_Const model;   /* device model name */
-    SANE_String_Const type;    /* device type (e.g., "flatbed scanner") */
+    SANE_String name;  /* unique device name */
+    SANE_String vendor;        /* device vendor string */
+    SANE_String model; /* device model name */
+    SANE_String type;  /* device type (e.g., "flatbed scanner") */
   }
 SANE_Device;
 

--------------020303030609050904070206--

Reply via email to