From d5f9a73cc03d65fe6c1674778c9c1301d9cf31d7 Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Sat, 26 May 2007 20:39:02 +0000 Subject: Fix build with gcc4.2 --- misc/asbutton/files/patch-asbutton.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 misc/asbutton/files/patch-asbutton.c (limited to 'misc/asbutton/files/patch-asbutton.c') diff --git a/misc/asbutton/files/patch-asbutton.c b/misc/asbutton/files/patch-asbutton.c new file mode 100644 index 000000000000..caeeb866c5c9 --- /dev/null +++ b/misc/asbutton/files/patch-asbutton.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- asbutton.c.orig ++++ asbutton.c +@@ -605,7 +605,7 @@ + continue; + } + if ( !strncasecmp(line, "button", 6)) +- if (atoi(&(char)line[6]) == position) ++ if (atoi((char)line[6]) == position) + break; + } + } while (1); -- cgit v1.2.3