diff options
author | Leandro Augusto Fogolin Pereira <leandro@zorg.(none)> | 2009-01-23 17:19:49 -0200 |
---|---|---|
committer | Leandro Augusto Fogolin Pereira <leandro@zorg.(none)> | 2009-01-23 17:19:49 -0200 |
commit | bfc6c84290261a525e7351d062e6a04db2051863 (patch) | |
tree | a8e244ca44c752d908438176c26bac71ecd0778e /hardinfo2/util.c | |
parent | 6db7d6e0a562a10839268db9592932e9b8a58f58 (diff) |
Add Network statistics (aka netstat -s).
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index d2954573..9ef0c869 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -86,14 +86,16 @@ inline gchar *size_human_readable(gfloat size) return g_strdup_printf("%.1f GiB", size / GiB); } -inline void strend(gchar * str, gchar chr) +inline char *strend(gchar * str, gchar chr) { if (!str) - return; + return NULL; char *p; if ((p = strchr(str, chr))) *p = 0; + + return str; } inline void remove_quotes(gchar * str) |