diff options
Diffstat (limited to 'recipes-security/openvas-libraries/files/g_type_init.patch')
-rw-r--r-- | recipes-security/openvas-libraries/files/g_type_init.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-security/openvas-libraries/files/g_type_init.patch b/recipes-security/openvas-libraries/files/g_type_init.patch new file mode 100644 index 0000000..db55057 --- /dev/null +++ b/recipes-security/openvas-libraries/files/g_type_init.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From f498503889b8178f165afa66dc33aa8ad8901371 Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
3 | Date: Fri, 28 Jun 2013 09:38:08 +0300 | ||
4 | Subject: [PATCH] removed the g_type_init() | ||
5 | |||
6 | The function is depricated in glib >= 2.35.0 and is | ||
7 | automatically called. | ||
8 | |||
9 | Signed-off-by: Andrei Dinu <andrei.adrianx.dinu@intel.com> | ||
10 | --- | ||
11 | base/openvas_file.c | 2 -- | ||
12 | 1 file changed, 2 deletions(-) | ||
13 | |||
14 | diff --git a/base/openvas_file.c b/base/openvas_file.c | ||
15 | index 8597198..d110c7f 100644 | ||
16 | --- a/base/openvas_file.c | ||
17 | +++ b/base/openvas_file.c | ||
18 | @@ -164,7 +164,6 @@ openvas_file_copy (const gchar *source_file, const gchar *dest_file) | ||
19 | GFile *sfile, *dfile; | ||
20 | GError *error; | ||
21 | |||
22 | - g_type_init (); | ||
23 | sfile = g_file_new_for_path (source_file); | ||
24 | dfile = g_file_new_for_path (dest_file); | ||
25 | error = NULL; | ||
26 | @@ -200,7 +199,6 @@ openvas_file_move (const gchar *source_file, const gchar *dest_file) | ||
27 | GFile *sfile, *dfile; | ||
28 | GError *error; | ||
29 | |||
30 | - g_type_init (); | ||
31 | sfile = g_file_new_for_path (source_file); | ||
32 | dfile = g_file_new_for_path (dest_file); | ||
33 | error = NULL; | ||
34 | -- | ||
35 | 1.7.9.5 | ||
36 | |||