diff options
author | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 15:26:33 -0500 |
---|---|---|
committer | Simon Quigley <tsimonq2@ubuntu.com> | 2017-06-19 15:26:33 -0500 |
commit | d1e18216836396a7791db7993287d21611faf69d (patch) | |
tree | db83679d4891b1b2eec9d3455fc9ef67550dfa7c /hardinfo/util.c | |
parent | 7aacc9f2510901c9e97b30fa9bcb550bb7f99c03 (diff) |
New upstream version 0.5.1+git20170619
Diffstat (limited to 'hardinfo/util.c')
-rw-r--r-- | hardinfo/util.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hardinfo/util.c b/hardinfo/util.c index 40566eac..dd5af1a4 100644 --- a/hardinfo/util.c +++ b/hardinfo/util.c @@ -113,7 +113,7 @@ gchar *seconds_to_string(unsigned int seconds) 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 size) 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 chr) 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'); } |