linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] iw: Fix -Wabsolute-value compiler warning in iw.c
@ 2016-05-12 16:16 Aurimas Liutikas
  2016-05-18 16:12 ` Aurimas Liutikas
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Aurimas Liutikas @ 2016-05-12 16:16 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

Signed-off-by: Aurimas Liutikas <aurimas@google.com>

diff --git a/iw.c b/iw.c
index 2aabddb..a6efe5b 100644
--- a/iw.c
+++ b/iw.c
@@ -516,7 +516,7 @@ int main(int argc, char **argv)
        const struct cmd *cmd = NULL;

        /* calculate command size including padding */
-       cmd_size = abs((long)&__section_set - (long)&__section_get);
+       cmd_size = labs((long)&__section_set - (long)&__section_get);
        /* strip off self */
        argc--;
        argv0 = *argv++;

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-31  9:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12 16:16 [PATCH] iw: Fix -Wabsolute-value compiler warning in iw.c Aurimas Liutikas
2016-05-18 16:12 ` Aurimas Liutikas
2016-05-27 18:07   ` Aurimas Liutikas
2016-05-30  0:43 ` Julian Calaby
2016-05-31  9:46 ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).