[nas] [PATCH] Fix warnings about 'free' in nasd on GNU/Linux x86

Erik Auerswald auerswal at unix-ag.uni-kl.de
Fri Aug 16 13:20:42 MDT 2013


Hi Marcos,

On 08/16/2013 05:51 PM, Marcos Mayorga wrote:
> something must be wrong if it doesn't compile just because
> #include <stdlib.h>,

Yes, something is strange...

This compiles (without warnings):

---8<---
Index: server/dia/auevents.c
===================================================================
--- server/dia/auevents.c	(revision 289)
+++ server/dia/auevents.c	(working copy)
@@ -22,6 +22,7 @@
   * $NCDId: @(#)auevents.c,v 1.9 1994/04/21 21:50:59 greg Exp $
   */

+#include        <stdlib.h>
  #include        "misc.h"
  #include        "dixstruct.h"

---8<---

But this fails:

---8<---
Index: server/dia/auevents.c
===================================================================
--- server/dia/auevents.c	(revision 289)
+++ server/dia/auevents.c	(working copy)
@@ -23,6 +23,7 @@
   */

  #include        "misc.h"
+#include        <stdlib.h>
  #include        "dixstruct.h"

  #ifdef sgi
---8<---

Any suggestions? What do you think about the attached patch?

Thanks,
Erik


-------------- next part --------------
A non-text attachment was scrubbed...
Name: nasd-fix_free_redefined_warnings.patch
Type: text/x-diff
Size: 862 bytes
Desc: not available
URL: <http://radscan.com/pipermail/nas/attachments/20130816/1ceb5d86/attachment.patch>


More information about the nas mailing list