Hi,

On Tue, 2012-08-07 at 18:12 +0200, Julien Massot wrote:
> This patch is required for the patch set :
> "Reduce the MAXIMUM_RETRIES to 2 for non favorite service."
> 
> ---
>  include/service.h |  2 ++
>  src/connman.h     |  1 -
>  src/device.c      |  2 +-
>  src/dhcp.c        |  8 ++++----
>  src/dhcpv6.c      |  8 ++++----
>  src/network.c     | 50 +++++++++++++++++++++++++-------------------------
>  src/service.c     |  8 ++++----
>  7 files changed, 40 insertions(+), 39 deletions(-)

After applying this patch and running make distclean
&& ./bootstrap-configure && make I get:
...
  CC     plugins/loopback.o
  CC     plugins/ethernet.o
In file included from ./include/connman/network.h:27:0,
                 from ./include/connman/service.h:26,
                 from ./include/connman/technology.h:25,
                 from plugins/ethernet.c:36:
./include/connman/device.h:98:13: error: ‘struct connman_network’ declared 
inside parameter list [-Werror]
plugins/ethernet.c: In function ‘add_network’:
plugins/ethernet.c:105:2: error: passing argument 2 of 
‘connman_device_add_network’ from incompatible pointer type [-Werror]
In file included from ./include/connman/network.h:27:0,
                 from ./include/connman/service.h:26,
                 from ./include/connman/technology.h:25,
                 from plugins/ethernet.c:36:
./include/connman/device.h:97:5: note: expected ‘struct connman_network *’ but 
argument is of type ‘struct connman_network *’
cc1: all warnings being treated as errors
make[1]: *** [plugins/ethernet.o] Error 1
make: *** [all] Error 2

Something happened as the #include order changed, can you investigate?

Thanks,

        Patrik


_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to