about summary refs log tree commit diff
path: root/libnm/nm-vpn-service-plugin.c
diff options
context:
space:
mode:
authorSebastien Bacher <seb128@ubuntu.com>2019-03-12 15:16:42 +0100
committerSebastien Bacher <seb128@ubuntu.com>2019-03-12 15:16:42 +0100
commitcc4ab276f923ded9f415c1c2bf192994367ab0bb (patch)
treeac3a7775665992b27d07eb44186d38ff961a8cd7 /libnm/nm-vpn-service-plugin.c
parentbb1cf58350bb34463e9ffc5f96ac4f9b6bf46d28 (diff)
parentdd428301eb6f02542015121d7b08d9997f137e50 (diff)
Update upstream source from tag 'upstream/1.15.91'
Update to upstream version '1.15.91'
with Debian dir 74de38245314cab529c6c94cd9d0b874ce0c2994
Diffstat (limited to 'libnm/nm-vpn-service-plugin.c')
-rw-r--r--libnm/nm-vpn-service-plugin.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libnm/nm-vpn-service-plugin.c b/libnm/nm-vpn-service-plugin.c
index ed9da7f7..a2728342 100644
--- a/libnm/nm-vpn-service-plugin.c
+++ b/libnm/nm-vpn-service-plugin.c
@@ -23,7 +23,6 @@
 
 #include "nm-vpn-service-plugin.h"
 
-#include <errno.h>
 #include <signal.h>
 #include <stdlib.h>
 
@@ -808,7 +807,6 @@ nm_vpn_service_plugin_read_vpn_details (int fd,
 	while (1) {
 		ssize_t nr;
 
-		errno = 0;
 		nr = read (fd, &c, 1);
 		if (nr < 0) {
 			if (errno == EAGAIN) {
@@ -830,8 +828,8 @@ nm_vpn_service_plugin_read_vpn_details (int fd,
 			/* done a line */
 			g_return_val_if_fail (hash, FALSE);
 			g_hash_table_insert (hash,
-					     g_string_free (key, FALSE),
-					     g_string_free (val, FALSE));
+			                     g_string_free (key, FALSE),
+			                     g_string_free (val, FALSE));
 			key = NULL;
 			val = NULL;
 			hash = NULL;
@@ -839,7 +837,7 @@ nm_vpn_service_plugin_read_vpn_details (int fd,
 		}
 
 		if (strcmp (line->str, "DONE") == 0) {
-			 /* finish marker */
+			/* finish marker */
 			break;
 		} else if (strncmp (line->str, DATA_KEY_TAG, strlen (DATA_KEY_TAG)) == 0) {
 			if (key != NULL) {