summaryrefslogtreecommitdiff
path: root/hardinfo/x_util.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2018-10-27 12:58:17 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-12-02 02:07:23 -0800
commit95e53cda009f498a88f64ef71803a168cb08856c (patch)
treedacc6f84e8ed93db85708b1f58df8705a5d52f8a /hardinfo/x_util.c
parent58a9f093fc830ad3d17a77423136be30db631934 (diff)
enable and fix some warnings
Part of (#298). Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'hardinfo/x_util.c')
-rw-r--r--hardinfo/x_util.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/hardinfo/x_util.c b/hardinfo/x_util.c
index 49372f56..c052f00a 100644
--- a/hardinfo/x_util.c
+++ b/hardinfo/x_util.c
@@ -54,11 +54,9 @@ static char *simple_line_value(char *line, const char *prefix) {
gboolean fill_glx_info(glx_info *glx) {
gboolean spawned;
- gchar *out, *err, *p, *l, *t, *next_nl;
+ gchar *out, *err, *p, *l, *next_nl;
gchar *glx_cmd = g_strdup("glxinfo");
- int ec;
-
#define GLX_MATCH_LINE(prefix_str, struct_member) \
if (l = simple_line_value(p, prefix_str)) { glx->struct_member = g_strdup(l); goto glx_next_line; }
@@ -120,11 +118,9 @@ void glx_free(glx_info *s) {
gboolean fill_xinfo(xinfo *xi) {
gboolean spawned;
- gchar *out, *err, *p, *l, *t, *next_nl;
+ gchar *out, *err, *p, *l, *next_nl;
gchar *xi_cmd = g_strdup("xdpyinfo");
- int ec;
-
#define XI_MATCH_LINE(prefix_str, struct_member) \
if (l = simple_line_value(p, prefix_str)) { xi->struct_member = g_strdup(l); goto xi_next_line; }
@@ -154,10 +150,10 @@ gboolean fill_xinfo(xinfo *xi) {
gboolean fill_xrr_info(xrr_info *xrr) {
gboolean spawned;
- gchar *out, *err, *p, *l, *t, *next_nl;
+ gchar *out, *err, *p, *next_nl;
gchar *xrr_cmd = g_strdup("xrandr");
-
int ec;
+
x_screen ts;
x_output to;
char output_id[128];