2011-02-16 15:11:39

by Claudio Takahasi

[permalink] [raw]
Subject: [PATCH] Fix wrong header include on interactive gatttool

This wrong include is triggering compiler warning: implicit declaration
of function 'strdup'.
---
attrib/interactive.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/attrib/interactive.c b/attrib/interactive.c
index 83a0778..a98fe79 100644
--- a/attrib/interactive.c
+++ b/attrib/interactive.c
@@ -20,7 +20,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*/
-#include <strings.h>
+#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <glib.h>
--
1.7.4.1



2011-02-16 19:05:37

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH] Fix wrong header include on interactive gatttool

Hi Claudio,

On Wed, Feb 16, 2011, Claudio Takahasi wrote:
> This wrong include is triggering compiler warning: implicit declaration
> of function 'strdup'.
> ---
> attrib/interactive.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

Applied. Thanks.

Johan