mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-08 15:00:35 +01:00
More gcc4 attribute silliness
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@600 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
7397161e03
commit
c3ceb22c95
1 changed files with 4 additions and 4 deletions
|
|
@ -394,7 +394,7 @@ static gboolean nm_vpnc_config_file_generate (const char *user_name, const char
|
|||
{
|
||||
char *string;
|
||||
int out_fd;
|
||||
int i;
|
||||
int i, x;
|
||||
|
||||
g_return_val_if_fail (user_name != NULL, FALSE);
|
||||
g_return_val_if_fail (password != NULL, FALSE);
|
||||
|
|
@ -409,17 +409,17 @@ static gboolean nm_vpnc_config_file_generate (const char *user_name, const char
|
|||
}
|
||||
|
||||
string = g_strdup_printf ("Xauth username %s\n", user_name);
|
||||
write (out_fd, string, strlen (string));
|
||||
x = write (out_fd, string, strlen (string));
|
||||
g_free (string);
|
||||
|
||||
string = g_strdup_printf ("Xauth password %s\n", password);
|
||||
write (out_fd, string, strlen (string));
|
||||
x = write (out_fd, string, strlen (string));
|
||||
g_free (string);
|
||||
|
||||
for (i = 0; i < num_items; i++)
|
||||
{
|
||||
char *temp = g_strdup_printf ("%s\n", data_items[i]);
|
||||
write (out_fd, temp, strlen (temp));
|
||||
x = write (out_fd, temp, strlen (temp));
|
||||
g_free (temp);
|
||||
string++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue