[Xfce4-commits] [panel-plugins/xfce4-battery-plugin] 01/01: Fix some warnings reported by Clang (Bug #15037)
noreply at xfce.org
noreply at xfce.org
Sun Jan 13 21:57:33 CET 2019
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository panel-plugins/xfce4-battery-plugin.
commit bb91182cb92208aa0daf2d532a0cd3b46a05a6a3
Author: Olivier Duchateau <duchateau.olivier at gmail.com>
Date: Sun Jan 13 18:46:27 2019 +0100
Fix some warnings reported by Clang (Bug #15037)
---
panel-plugin/libacpi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/panel-plugin/libacpi.c b/panel-plugin/libacpi.c
index 0865c62..5867876 100644
--- a/panel-plugin/libacpi.c
+++ b/panel-plugin/libacpi.c
@@ -100,7 +100,7 @@ oidfmt(int *oid, int len, char *fmt, u_int *kind)
j = sizeof(buf);
i = sysctl(qoid, len + 2, buf, &j, 0, 0);
if (i)
- err(1, "sysctl fmt %d %d %d", i, j, errno);
+ err(1, "sysctl fmt %d %zu %d", i, j, errno);
if (kind)
*kind = *(u_int *)buf;
@@ -129,7 +129,7 @@ get_var(int *oid, int nlen)
j = sizeof(name);
i = sysctl(qoid, nlen + 2, name, &j, 0, 0);
if (i || !j)
- err(1, "sysctl name %d %d %d", i, j, errno);
+ err(1, "sysctl name %d %zu %d", i, j, errno);
sep = "=";
@@ -145,7 +145,7 @@ get_var(int *oid, int nlen)
return (1);
val[len] = '\0';
- fmt = buf;
+ fmt = (char *)buf;
oidfmt(oid, nlen, fmt, &kind);
p = val;
switch (*fmt) {
@@ -170,7 +170,7 @@ get_var(int *oid, int nlen)
return (retval);
default:
printf("%s%s", name, sep);
- printf("Format:%s Length:%d Dump:0x", fmt, len);
+ printf("Format:%s Length:%zu Dump:0x", fmt, len);
while (len-- && (p < val + 16))
printf("%02x", *p++);
if (len > 16)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list