Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."

Today's Topics:

   1. [PATCH] vpn: Constify struct vpn_driver pointer (Slava Monich)
   2. [PATCH] util: Fixed implicit declaration of function 'strlen'
      (Slava Monich)


----------------------------------------------------------------------

Date: Fri, 22 May 2020 17:34:52 +0300
From: Slava Monich <[email protected]>
Subject: [PATCH] vpn: Constify struct vpn_driver pointer
To: [email protected]
Message-ID: <[email protected]>

There's no reason for it to be writable
---
 vpn/plugins/vpn.c | 4 ++--
 vpn/plugins/vpn.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/vpn/plugins/vpn.c b/vpn/plugins/vpn.c
index e04670c..a0f6fef 100644
--- a/vpn/plugins/vpn.c
+++ b/vpn/plugins/vpn.c
@@ -65,7 +65,7 @@ struct vpn_data {
 struct vpn_driver_data {
        const char *name;
        const char *program;
-       struct vpn_driver *vpn_driver;
+       const struct vpn_driver *vpn_driver;
        struct vpn_provider_driver provider_driver;
 };
 
@@ -812,7 +812,7 @@ static int vpn_route_env_parse(struct vpn_provider 
*provider, const char *key,
        return 0;
 }
 
-int vpn_register(const char *name, struct vpn_driver *vpn_driver,
+int vpn_register(const char *name, const struct vpn_driver *vpn_driver,
                        const char *program)
 {
        struct vpn_driver_data *data;
diff --git a/vpn/plugins/vpn.h b/vpn/plugins/vpn.h
index 71e04f6..fd10add 100644
--- a/vpn/plugins/vpn.h
+++ b/vpn/plugins/vpn.h
@@ -58,7 +58,7 @@ struct vpn_driver {
                        enum vpn_provider_route_type *type);
 };
 
-int vpn_register(const char *name, struct vpn_driver *driver,
+int vpn_register(const char *name, const struct vpn_driver *driver,
                        const char *program);
 void vpn_unregister(const char *provider_name);
 void vpn_died(struct connman_task *task, int exit_code, void *user_data);
-- 
1.9.1

------------------------------

Date: Fri, 22 May 2020 17:39:19 +0300
From: Slava Monich <[email protected]>
Subject: [PATCH] util: Fixed implicit declaration of function 'strlen'
To: [email protected]
Message-ID: <[email protected]>

According to the man page #include <string.h> is required.
---
 src/shared/util.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/shared/util.c b/src/shared/util.c
index 73c24ae..bda2d2b 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -28,6 +28,7 @@
 #include <stdio.h>
 #include <ctype.h>
 #include <stdarg.h>
+#include <string.h>
 
 #include "src/shared/util.h"
 
-- 
1.9.1

------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]


------------------------------

End of connman Digest, Vol 55, Issue 11
***************************************

Reply via email to