Mercurial > mplayer.hg
changeset 32840:904d9843ffb6
Cosmetic: Use 0, not '\0'.
author | ib |
---|---|
date | Fri, 18 Feb 2011 22:14:47 +0000 |
parents | 2dd39155f320 |
children | f698af71f514 |
files | gui/skin/cut.c gui/skin/font.c |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/skin/cut.c Fri Feb 18 20:16:36 2011 +0000 +++ b/gui/skin/cut.c Fri Feb 18 22:14:47 2011 +0000 @@ -31,7 +31,7 @@ if ( n >= num && in[i] != sep && c + 1 < maxout ) out[c++] = in[i]; if ( n >= num && in[i+1] == sep ) break; } - if ( c < maxout ) out[c] = '\0'; + if ( c < maxout ) out[c] = 0; } int cutItemToInt( char * in,char sep,int num )
--- a/gui/skin/font.c Fri Feb 18 20:16:36 2011 +0000 +++ b/gui/skin/font.c Fri Feb 18 22:14:47 2011 +0000 @@ -93,7 +93,7 @@ strswap( tmp,'\t',' ' ); trim( tmp ); ptmp = strchr(tmp, ';'); - if (ptmp && !(ptmp == tmp + 1 && tmp[0] == '"' && tmp[2] == '"')) *ptmp = '\0'; + if (ptmp && !(ptmp == tmp + 1 && tmp[0] == '"' && tmp[2] == '"')) *ptmp = 0; if (!*tmp) continue; n = (strncmp(tmp, "\"=", 2) == 0 ? 1 : 0); cutItem( tmp,command,'=',n ); cutItem( tmp,param,'=',n+1 ); @@ -101,7 +101,7 @@ { int i; if (!command[1]) command[0] = '='; - else if (command[1] == '"') command[1] = '\0'; + else if (command[1] == '"') command[1] = 0; else cutItem(command, command, '"', 1); if ( command[0] & 0x80 ) {