aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/fix-ftbfs-shared-symbols.diff
blob: a25b3321506a415fbc8cbc0252b33b0ada61f8ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Description: Make the strend function accessible
 This patch makes the strend function accessible by removing the `inline`
 prefix.
Author: Simon Quigley <tsimonq2@ubuntu.com>
Last-Update: 2017-06-19
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---
--- a/hardinfo/util.c
+++ b/hardinfo/util.c
@@ -113,7 +113,7 @@ gchar *seconds_to_string(unsigned int se
     return g_strdup_printf(wdays, whours, wminutes);
 }
 
-inline gchar *size_human_readable(gfloat size)
+gchar *size_human_readable(gfloat size)
 {
     if (size < KiB)
 	return g_strdup_printf(_("%.1f B"), size);
@@ -129,7 +129,7 @@ inline gchar *size_human_readable(gfloat
     return g_strdup_printf(_("%.1f PiB"), size / PiB);
 }
 
-inline char *strend(gchar * str, gchar chr)
+char *strend(gchar * str, gchar chr)
 {
     if (!str)
 	return NULL;
@@ -141,7 +141,7 @@ inline char *strend(gchar * str, gchar c
     return str;
 }
 
-inline void remove_quotes(gchar * str)
+void remove_quotes(gchar * str)
 {
     if (!str)
 	return;
@@ -152,7 +152,7 @@ inline void remove_quotes(gchar * str)
     strend(str, '"');
 }
 
-inline void remove_linefeed(gchar * str)
+void remove_linefeed(gchar * str)
 {
     strend(str, '\n');
 }