Mercurial > mplayer.hg
diff libaf/format.c @ 19108:5e767cabf4cd
marks several read-only string parameters and function return-values which can only be used read-only as const. Patch by Stefan Huehner, stefan _AT huener-org
author | reynaldo |
---|---|
date | Sun, 16 Jul 2006 01:20:30 +0000 |
parents | 4645b9f89237 |
children | 6e840952870d |
line wrap: on
line diff
--- a/libaf/format.c Sat Jul 15 23:42:44 2006 +0000 +++ b/libaf/format.c Sun Jul 16 01:20:30 2006 +0000 @@ -19,7 +19,7 @@ #include "help_mp.h" // Convert from string to format -int af_str2fmt(char* str) +int af_str2fmt(const char* str) { int format=0; // Scan for endianess @@ -178,7 +178,7 @@ { NULL, 0 } }; -char *af_fmt2str_short(int format) +const char *af_fmt2str_short(int format) { int i; @@ -189,7 +189,7 @@ return "??"; } -int af_str2fmt_short(char* str) +int af_str2fmt_short(const char* str) { int i;