diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-17 09:02:53 +0000 |
commit | 79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d (patch) | |
tree | d5c3fbab0ec01d2b0ca7d5278f15cf45f79b0763 /apps/plugins/doom/d_deh.c | |
parent | 1329d7d3fde426a290c03ee92b1c701dde49851c (diff) | |
download | rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.tar.gz rockbox-79c8a8cbbec5f1f0f7766d2b72ce12d51b3b849d.zip |
Let GCC check arguments of some more printf-style functions, also for plugins and codecs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12815 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/doom/d_deh.c')
-rw-r--r-- | apps/plugins/doom/d_deh.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/doom/d_deh.c b/apps/plugins/doom/d_deh.c index a5aee07848..c1e136f467 100644 --- a/apps/plugins/doom/d_deh.c +++ b/apps/plugins/doom/d_deh.c | |||
@@ -1918,25 +1918,25 @@ void deh_procFrame(DEHFILE *fpin, int fpout, char *line) | |||
1918 | } | 1918 | } |
1919 | if (!strcasecmp(key,deh_state[0])) // Sprite number | 1919 | if (!strcasecmp(key,deh_state[0])) // Sprite number |
1920 | { | 1920 | { |
1921 | if (fpout) fdprintf(fpout," - sprite = %d\n",value); | 1921 | if (fpout) fdprintf(fpout," - sprite = %ld\n",(long)value); |
1922 | states[indexnum].sprite = (spritenum_t)value; | 1922 | states[indexnum].sprite = (spritenum_t)value; |
1923 | } | 1923 | } |
1924 | else | 1924 | else |
1925 | if (!strcasecmp(key,deh_state[1])) // Sprite subnumber | 1925 | if (!strcasecmp(key,deh_state[1])) // Sprite subnumber |
1926 | { | 1926 | { |
1927 | if (fpout) fdprintf(fpout," - frame = %d\n",value); | 1927 | if (fpout) fdprintf(fpout," - frame = %ld\n",(long)value); |
1928 | states[indexnum].frame = (long)value; // long | 1928 | states[indexnum].frame = (long)value; // long |
1929 | } | 1929 | } |
1930 | else | 1930 | else |
1931 | if (!strcasecmp(key,deh_state[2])) // Duration | 1931 | if (!strcasecmp(key,deh_state[2])) // Duration |
1932 | { | 1932 | { |
1933 | if (fpout) fdprintf(fpout," - tics = %d\n",value); | 1933 | if (fpout) fdprintf(fpout," - tics = %ld\n",(long)value); |
1934 | states[indexnum].tics = (long)value; // long | 1934 | states[indexnum].tics = (long)value; // long |
1935 | } | 1935 | } |
1936 | else | 1936 | else |
1937 | if (!strcasecmp(key,deh_state[3])) // Next frame | 1937 | if (!strcasecmp(key,deh_state[3])) // Next frame |
1938 | { | 1938 | { |
1939 | if (fpout) fdprintf(fpout," - nextstate = %d\n",value); | 1939 | if (fpout) fdprintf(fpout," - nextstate = %ld\n",(long)value); |
1940 | states[indexnum].nextstate = (statenum_t)value; | 1940 | states[indexnum].nextstate = (statenum_t)value; |
1941 | } | 1941 | } |
1942 | else | 1942 | else |
@@ -1948,13 +1948,13 @@ void deh_procFrame(DEHFILE *fpin, int fpout, char *line) | |||
1948 | else | 1948 | else |
1949 | if (!strcasecmp(key,deh_state[5])) // Unknown 1 | 1949 | if (!strcasecmp(key,deh_state[5])) // Unknown 1 |
1950 | { | 1950 | { |
1951 | if (fpout) fdprintf(fpout," - misc1 = %d\n",value); | 1951 | if (fpout) fdprintf(fpout," - misc1 = %ld\n",(long)value); |
1952 | states[indexnum].misc1 = (long)value; // long | 1952 | states[indexnum].misc1 = (long)value; // long |
1953 | } | 1953 | } |
1954 | else | 1954 | else |
1955 | if (!strcasecmp(key,deh_state[6])) // Unknown 2 | 1955 | if (!strcasecmp(key,deh_state[6])) // Unknown 2 |
1956 | { | 1956 | { |
1957 | if (fpout) fdprintf(fpout," - misc2 = %d\n",value); | 1957 | if (fpout) fdprintf(fpout," - misc2 = %ld\n",(long)value); |
1958 | states[indexnum].misc2 = (long)value; // long | 1958 | states[indexnum].misc2 = (long)value; // long |
1959 | } | 1959 | } |
1960 | else | 1960 | else |
@@ -2017,8 +2017,8 @@ void deh_procPointer(DEHFILE *fpin, int fpout, char *line) // done | |||
2017 | if (!strcasecmp(key,deh_state[4])) // Codep frame (not set in Frame deh block) | 2017 | if (!strcasecmp(key,deh_state[4])) // Codep frame (not set in Frame deh block) |
2018 | { | 2018 | { |
2019 | states[indexnum].action = deh_codeptr[value]; | 2019 | states[indexnum].action = deh_codeptr[value]; |
2020 | if (fpout) fdprintf(fpout," - applied from codeptr[%d] to states[%d]\n", | 2020 | if (fpout) fdprintf(fpout," - applied from codeptr[%ld] to states[%d]\n", |
2021 | value,indexnum); | 2021 | (long)value,indexnum); |
2022 | // Write BEX-oriented line to match: | 2022 | // Write BEX-oriented line to match: |
2023 | for (i=0;i<NUMSTATES;i++) | 2023 | for (i=0;i<NUMSTATES;i++) |
2024 | { | 2024 | { |