From 924c483f2717698bce58df2260fb2188fcf7f9f6 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Sat, 20 May 2006 07:56:48 +0000 Subject: Split patch-warnings into patch-clients_audio_audemo_audemo.c patch-clients_audio_auedit_Graph.c patch-clients_audio_auedit_auedit.c patch-clients_audio_aupanel_aupanel.c patch-clients_audio_auphone_auphone.c patch-clients_audio_autool_audiotool.c patch-clients_audio_auwave_auwave.c patch-server_dda_voxware_config.c patch-server_dia_gram.y patch-server_dia_lex.l to ease with maintaining. --- .../nas/files/patch-clients_audio_audemo_audemo.c | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 audio/nas/files/patch-clients_audio_audemo_audemo.c (limited to 'audio/nas/files/patch-clients_audio_audemo_audemo.c') diff --git a/audio/nas/files/patch-clients_audio_audemo_audemo.c b/audio/nas/files/patch-clients_audio_audemo_audemo.c new file mode 100644 index 000000000000..4620732d03b0 --- /dev/null +++ b/audio/nas/files/patch-clients_audio_audemo_audemo.c @@ -0,0 +1,36 @@ +--- clients/audio/audemo/audemo.c Sun Jun 20 15:06:50 2004 ++++ clients/audio/audemo/audemo.c Mon Oct 10 11:12:15 2005 +@@ -29,4 +29,5 @@ + #include "config.h" + ++#include + #include + +@@ -973,5 +973,5 @@ + + /* retrieve the address of the globals from the first parameter */ +- globals = (GlobalDataPtr) atoi(params[0]); ++ globals = (GlobalDataPtr)(uintptr_t)strtoull(params[0], NULL, 0); + saveOk(w, globals, 0); + } +@@ -1296,5 +1296,5 @@ + { + GlobalDataPtr globals = (GlobalDataPtr) globalsp; +- int position = (int) positionp; ++ intptr_t position = (intptr_t) positionp; + int newVolume; + char buf[50]; +@@ -1363,5 +1363,5 @@ + { + GlobalDataPtr globals = (GlobalDataPtr) globalsp; +- int position = (int) positionp; ++ intptr_t position = (intptr_t) positionp; + int newGain; + char buf[50]; +@@ -1457,5 +1457,5 @@ + + /* pass the address of the globals as an argument to the action */ +- sprintf(tmp, "Return: ok(%u)", (unsigned int) g); ++ sprintf(tmp, "Return: ok(%p)", g); + XtOverrideTranslations(s->file, XtParseTranslationTable(tmp)); + -- cgit v1.2.3