diff options
author | Vasil Dimov <vd@FreeBSD.org> | 2006-05-20 07:56:48 +0000 |
---|---|---|
committer | Vasil Dimov <vd@FreeBSD.org> | 2006-05-20 07:56:48 +0000 |
commit | 924c483f2717698bce58df2260fb2188fcf7f9f6 (patch) | |
tree | fce57f0568cb00cc7aa7770622586710687f090b /audio/nas/files/patch-clients_audio_audemo_audemo.c | |
parent | Fix the snavigator script in the case that a symbolic link was (diff) |
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.
Diffstat (limited to 'audio/nas/files/patch-clients_audio_audemo_audemo.c')
-rw-r--r-- | audio/nas/files/patch-clients_audio_audemo_audemo.c | 36 |
1 files changed, 36 insertions, 0 deletions
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 <inttypes.h> + #include <stdio.h> + +@@ -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, "<Key>Return: ok(%u)", (unsigned int) g); ++ sprintf(tmp, "<Key>Return: ok(%p)", g); + XtOverrideTranslations(s->file, XtParseTranslationTable(tmp)); + |