[vlc-devel] commit: Simplify macro ( Rafaël Carré )
git version control
git at videolan.org
Sat Apr 5 00:24:31 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Sat Apr 5 00:14:07 2008 +0200| [ac73a8981357037bd9131ef4cefaac52222d8198]
Simplify macro
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac73a8981357037bd9131ef4cefaac52222d8198
---
modules/control/rc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/control/rc.c b/modules/control/rc.c
index 44cdc71..4bb3430 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -2149,7 +2149,7 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
*****************************************************************************/
static input_item_t *parse_MRL( intf_thread_t *p_intf, char *psz_mrl )
{
-#define SKIPSPACE( p ) { while( *p && ( *p == ' ' || *p == '\t' ) ) p++; }
+#define SKIPSPACE( p ) { while( *p == ' ' || *p == '\t' ) p++; }
#define SKIPTRAILINGSPACE( p, d ) \
{ char *e=d; while( e > p && (*(e-1)==' ' || *(e-1)=='\t') ){e--;*e=0;} }
More information about the vlc-devel
mailing list