[network-manager-openconnect/th/logging-bgo767733: 1/6] src: define static ValidProperty as const



commit ad9dd4ec876ef6a6abb44015dc4c03e2d84fd69e
Author: Thomas Haller <thaller redhat com>
Date:   Thu Jun 16 17:51:56 2016 +0200

    src: define static ValidProperty as const

 src/nm-openconnect-service.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/nm-openconnect-service.c b/src/nm-openconnect-service.c
index f3e0f05..c15e49d 100644
--- a/src/nm-openconnect-service.c
+++ b/src/nm-openconnect-service.c
@@ -75,7 +75,7 @@ typedef struct {
        gint int_max;
 } ValidProperty;
 
-static ValidProperty valid_properties[] = {
+static const ValidProperty valid_properties[] = {
        { NM_OPENCONNECT_KEY_GATEWAY,     G_TYPE_STRING, 0, 0 },
        { NM_OPENCONNECT_KEY_CACERT,      G_TYPE_STRING, 0, 0 },
        { NM_OPENCONNECT_KEY_AUTHTYPE,    G_TYPE_STRING, 0, 0 },
@@ -91,7 +91,7 @@ static ValidProperty valid_properties[] = {
        { NULL,                           G_TYPE_NONE, 0, 0 }
 };
 
-static ValidProperty valid_secrets[] = {
+static const ValidProperty valid_secrets[] = {
        { NM_OPENCONNECT_KEY_COOKIE,  G_TYPE_STRING, 0, 0 },
        { NM_OPENCONNECT_KEY_GATEWAY, G_TYPE_STRING, 0, 0 },
        { NM_OPENCONNECT_KEY_GWCERT,  G_TYPE_STRING, 0, 0 },
@@ -104,7 +104,7 @@ static gboolean debug = FALSE;
 static GMainLoop *loop = NULL;
 
 typedef struct ValidateInfo {
-       ValidProperty *table;
+       const ValidProperty *table;
        GError **error;
        gboolean have_items;
 } ValidateInfo;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]