[PATCH] compile warning

Antonio Borneo borneo.antonio at gmail.com
Thu Aug 6 09:58:57 EDT 2009


I get a compile warning using my aged gcc 4.1.1
 main.c:332: warning: passing argument 1 of ‘free’ discards qualifiers
from pointer target type
The pointer passed to free() has been originally declared as "const",
but now this property has been dropped.

Patch in attachment fixes the declaration.

Best Regards,
Antonio Borneo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch_const_useragent.diff
Type: text/x-patch
Size: 350 bytes
Desc: not available
URL: <http://bombadil.infradead.org/pipermail/openconnect-devel/attachments/20090806/6f264b67/attachment.bin>


More information about the openconnect-devel mailing list