[MPlayer-dev-eng] [patch] more const for function parameters & return values
Stefan Huehner
stefan at huehner.org
Sun Jul 16 02:26:04 CEST 2006
On Sat, Jul 15, 2006 at 07:41:58PM +0200, Stefan Huehner wrote:
> Hi,
>
> attached patch marks several read-only string parameters and function
> return-values which can only be used read-only as const.
Splitted. Attached is the second part of the original patch, which
removes an now unneccessary cast.
Regards,
Stefan
-------------- next part --------------
diff -u libaf/format.c libaf/format.c
--- libaf/format.c (working copy)
+++ libaf/format.c (working copy)
@@ -184,7 +184,7 @@
for (i = 0; af_fmtstr_table[i].name; i++)
if (af_fmtstr_table[i].format == format)
- return (char*)(af_fmtstr_table[i].name);
+ return af_fmtstr_table[i].name;
return "??";
}
More information about the MPlayer-dev-eng
mailing list