From b3debe00a30eda074770a9697627320b1dfedea8 Mon Sep 17 00:00:00 2001 From: mazze Date: Sat, 14 Mar 2009 13:53:44 +0000 Subject: [PATCH] Some compiler warnings removed. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@30903 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/utilities/Installer/gui_zune.c | 6 +++--- workbench/utilities/Snoopy/gui.c | 14 +++++++------- workbench/utilities/Snoopy/patches.c | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/workbench/utilities/Installer/gui_zune.c b/workbench/utilities/Installer/gui_zune.c index 3c28d3f28..e4d88d308 100644 --- a/workbench/utilities/Installer/gui_zune.c +++ b/workbench/utilities/Installer/gui_zune.c @@ -629,7 +629,7 @@ char **mxlabels; } WaitCTRL(sigs); } - GetAttr(MUIA_Radio_Active, levelmx, &usrlevel); + GetAttr(MUIA_Radio_Active, levelmx, (IPTR *)&usrlevel); set_variable("@user-level", NULL, usrlevel); DelContents(wc); @@ -684,7 +684,7 @@ char **mxlabels; } WaitCTRL(sigs); } - GetAttr(MUIA_Radio_Active, levelmx, &logval); + GetAttr(MUIA_Radio_Active, levelmx, (IPTR *)&logval); switch (logval) { case 0: /* Log to file */ @@ -742,7 +742,7 @@ char **mxlabels; } WaitCTRL(sigs); } - GetAttr(MUIA_Radio_Active, levelmx, &logval); + GetAttr(MUIA_Radio_Active, levelmx, (IPTR *)&logval); switch (logval) { case 0: /* Really Install */ diff --git a/workbench/utilities/Snoopy/gui.c b/workbench/utilities/Snoopy/gui.c index 5bf9fff57..3a50ff790 100644 --- a/workbench/utilities/Snoopy/gui.c +++ b/workbench/utilities/Snoopy/gui.c @@ -141,7 +141,7 @@ void gui_init(void) reset_hook.h_Entry = (APTR)reset_function; cancel_hook.h_Entry = (APTR)cancel_function; - app = ApplicationObject, + app = (Object *)ApplicationObject, MUIA_Application_Title, (IPTR) MSG(MSG_TITLE), MUIA_Application_Version, (IPTR) VERSION, MUIA_Application_Copyright, (IPTR) MSG(MSG_COPYRIGHT), @@ -150,7 +150,7 @@ void gui_init(void) MUIA_Application_Base, (IPTR) MSG(MSG_PORTNAME), MUIA_Application_SingleTask, TRUE, - SubWindow, (IPTR)(window = WindowObject, + SubWindow, (IPTR)(window = (Object *)WindowObject, MUIA_Window_Title, (IPTR)MSG(MSG_TITLE), MUIA_Window_CloseGadget, FALSE, WindowContents, (IPTR)(VGroup, @@ -175,7 +175,7 @@ void gui_init(void) End), Child, (IPTR)(ColGroup(2), Child, (IPTR)Label(MSG(MSG_MATCH)), - Child, (IPTR)(patternStr = StringObject, + Child, (IPTR)(patternStr = (Object *)StringObject, StringFrame, MUIA_String_MaxLen, PATTERNLEN, End), @@ -183,22 +183,22 @@ void gui_init(void) Child, (IPTR)(ColGroup(2), GroupFrameT(MSG(MSG_OUTPUT_FIELD)), Child, (IPTR)Label(MSG(MSG_NAME)), - Child, (IPTR)(nameNum = SliderObject, + Child, (IPTR)(nameNum = (Object *)SliderObject, MUIA_Numeric_Min, 10, MUIA_Numeric_Max, 50, End), Child, (IPTR)Label(MSG(MSG_ACTION)), - Child, (IPTR)(actionNum = SliderObject, + Child, (IPTR)(actionNum = (Object *)SliderObject, MUIA_Numeric_Min, 10, MUIA_Numeric_Max, 50, End), Child, (IPTR)Label(MSG(MSG_TARGET)), - Child, (IPTR)(targetNum = SliderObject, + Child, (IPTR)(targetNum = (Object *)SliderObject, MUIA_Numeric_Min, 10, MUIA_Numeric_Max, 50, End), Child, (IPTR)Label(MSG(MSG_OPTION)), - Child, (IPTR)(optionNum = SliderObject, + Child, (IPTR)(optionNum = (Object *)SliderObject, MUIA_Numeric_Min, 10, MUIA_Numeric_Max, 50, End), diff --git a/workbench/utilities/Snoopy/patches.c b/workbench/utilities/Snoopy/patches.c index c5470ff12..d0d6fbe42 100644 --- a/workbench/utilities/Snoopy/patches.c +++ b/workbench/utilities/Snoopy/patches.c @@ -650,7 +650,7 @@ AROS_UFH3(LONG, New_SystemTagList, if (patches[PATCH_SystemTagList].enabled) { char optstr[20]; - sprintf(optstr, "%ld", result); + sprintf(optstr, "%d", result); main_output("SystemTagList", command, optstr, result != -1, TRUE); } @@ -773,7 +773,7 @@ AROS_UFH5(BYTE, New_OpenDevice, if (patches[PATCH_OpenDevice].enabled) { char unitstr[20]; - sprintf(unitstr, "Unit %ld", unitNumber); + sprintf(unitstr, "Unit %d", unitNumber); main_output("OpenDevice", devName, unitstr, !result, TRUE); } -- 2.11.4.GIT