DA: Add exception check for time logic
[platform/upstream/connman.git] / src / bridge.c
old mode 100644 (file)
new mode 100755 (executable)
index 034fa13..df19a6a
@@ -3,7 +3,7 @@
  *  Connection Manager
  *
  *  Copyright (C) 2007-2013  Intel Corporation. All rights reserved.
- *  Copyright (C) 2012-2013  BMW Car IT GmbH. All rights reserved.
+ *  Copyright (C) 2012-2014  BMW Car IT GmbH.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -56,7 +56,7 @@ static int set_forward_delay(const char *name, unsigned int delay)
        if (!f)
                return -errno;
 
-       fprintf(f, "%d", delay);
+       fprintf(f, "%u", delay);
 
        fclose(f);
 
@@ -122,7 +122,8 @@ int __connman_bridge_enable(const char *name, const char *ip_address,
 
        err = __connman_inet_modify_address(RTM_NEWADDR,
                                NLM_F_REPLACE | NLM_F_ACK, index, AF_INET,
-                               ip_address, NULL, prefix_len, broadcast);
+                               ip_address, NULL, prefix_len, broadcast,
+                               false);
        if (err < 0)
                return err;