summaryrefslogtreecommitdiffstats
path: root/libvo/x11_common.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-16 09:08:07 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-16 09:08:07 +0000
commit679f307f013740c1bdc42859ea9a206508f6b811 (patch)
treec48396455feed5cfb493dd8f9e44000f32f13be7 /libvo/x11_common.c
parent1d0e6ef7cc82ec7933447c02aef16d652e202b55 (diff)
downloadmpv-679f307f013740c1bdc42859ea9a206508f6b811.tar.bz2
mpv-679f307f013740c1bdc42859ea9a206508f6b811.tar.xz
helper functions for comparing strarg_t "strings".
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15735 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/x11_common.c')
-rw-r--r--libvo/x11_common.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index 6d455d8f48..66e1694f6a 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -2497,9 +2497,9 @@ int xv_test_ck( void * arg )
{
strarg_t * strarg = (strarg_t *)arg;
- if ( strncmp( "use", strarg->str, 3 ) == 0 ||
- strncmp( "set", strarg->str, 3 ) == 0 ||
- strncmp( "cur", strarg->str, 3 ) == 0 )
+ if ( strargcmp( strarg, "use" ) == 0 ||
+ strargcmp( strarg, "set" ) == 0 ||
+ strargcmp( strarg, "cur" ) == 0 )
{
return 1;
}
@@ -2511,9 +2511,9 @@ int xv_test_ckm( void * arg )
{
strarg_t * strarg = (strarg_t *)arg;
- if ( strncmp( "bg", strarg->str, 2 ) == 0 ||
- strncmp( "man", strarg->str, 3 ) == 0 ||
- strncmp( "auto", strarg->str, 4 ) == 0 )
+ if ( strargcmp( strarg, "bg" ) == 0 ||
+ strargcmp( strarg, "man" ) == 0 ||
+ strargcmp( strarg, "auto" ) == 0 )
{
return 1;
}