summaryrefslogtreecommitdiffstats
path: root/mp_msg.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-27 10:10:05 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-01-27 10:10:05 +0000
commit70e10c7436613aed24191043ba265b0cff5790fa (patch)
treef70eaef91fb55342b1433abb0ca0a5b6e718aad9 /mp_msg.c
parent248e3fd693aa9e33c67279deb0b19fc6a8b75a96 (diff)
downloadmpv-70e10c7436613aed24191043ba265b0cff5790fa.tar.bz2
mpv-70e10c7436613aed24191043ba265b0cff5790fa.tar.xz
Cosmetics: remove tabs, almost all added during last patch, from
an otherwise tab-free file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22023 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.c')
-rw-r--r--mp_msg.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/mp_msg.c b/mp_msg.c
index 241f0c9997..593f4caf3a 100644
--- a/mp_msg.c
+++ b/mp_msg.c
@@ -17,7 +17,7 @@
#include <errno.h>
#endif
-#if defined(FOR_MENCODER) || defined(CODECS2HTML)
+#if defined(FOR_MENCODER) || defined(CODECS2HTML)
#undef HAVE_NEW_GUI
#endif
@@ -49,20 +49,20 @@ const char* filename_recode(const char* filename)
size_t filename_len, max_path;
char* precoded;
if (!strcasecmp(mp_msg_charset, MSG_CHARSET) ||
- !strcasecmp(mp_msg_charset, "noconv"))
- return filename;
+ !strcasecmp(mp_msg_charset, "noconv"))
+ return filename;
if (inv_msgiconv == (iconv_t)(-1)) {
- inv_msgiconv = iconv_open(MSG_CHARSET, mp_msg_charset);
- if (inv_msgiconv == (iconv_t)(-1))
- return filename;
+ inv_msgiconv = iconv_open(MSG_CHARSET, mp_msg_charset);
+ if (inv_msgiconv == (iconv_t)(-1))
+ return filename;
}
filename_len = strlen(filename);
max_path = MSGSIZE_MAX - 4;
precoded = recoded_filename;
if (iconv(inv_msgiconv, &filename, &filename_len,
- &precoded, &max_path) == (size_t)(-1) && errno == E2BIG) {
- precoded[0] = precoded[1] = precoded[2] = '.';
- precoded += 3;
+ &precoded, &max_path) == (size_t)(-1) && errno == E2BIG) {
+ precoded[0] = precoded[1] = precoded[2] = '.';
+ precoded += 3;
}
*precoded = '\0';
return recoded_filename;
@@ -151,7 +151,7 @@ void mp_msg(int mod, int lev, const char *format, ... ){
flag=0;
}
#endif
- { unsigned char v_colors[10]={9,1,3,15,7,2,2,8,8,8};
+ { unsigned char v_colors[10]={9,1,3,15,7,2,2,8,8,8};
static const char *lev_text[]= {
"FATAL",
"ERROR",
@@ -226,8 +226,8 @@ void mp_msg(int mod, int lev, const char *format, ... ){
}
#endif
if (lev <= MSGL_WARN){
- fprintf(stderr, "%s", tmp);fflush(stderr);
+ fprintf(stderr, "%s", tmp);fflush(stderr);
} else {
- printf("%s", tmp);fflush(stdout);
+ printf("%s", tmp);fflush(stdout);
}
}