]> git.sesse.net Git - mlt/commitdiff
minor corrections
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 12 Jan 2004 13:52:21 +0000 (13:52 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 12 Jan 2004 13:52:21 +0000 (13:52 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@64 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt/src/albino/albino.c
mlt/src/miracle/miracle_commands.c
mlt/src/miracle/miracle_connection.c
src/albino/albino.c
src/miracle/miracle_commands.c
src/miracle/miracle_connection.c

index faaf03f6635718dbc07f1df7f46365a8058a62b5..28dc6f5b48d105f3455833e482d904e51d24613f 100644 (file)
@@ -76,7 +76,7 @@ int main( int argc, char **argv  )
                while ( response != NULL && prompt( temp, 1024 ) )
                {
                        valerie_util_trim( valerie_util_chomp( temp ) );
-                       if ( !strcmp( temp, "BYE" ) )
+                       if ( !strcasecmp( temp, "BYE" ) )
                        {
                                break;
                        }
index 4a23e439c2c6a7599f66e85efc62df4906667b03..3a5db91b81a2087a685850e2c2239676d8b87040 100644 (file)
@@ -167,7 +167,7 @@ response_codes miracle_list_clips( command_argument cmd_arg )
                {
                        snprintf( fullname, 1023, "%s%s/%s", cmd_arg->root_dir, dir_name, de[i]->d_name );
                        if ( lstat( fullname, &info ) == 0 && 
-                                ( S_ISREG( info.st_mode ) || ( strstr( fullname, ".clip" ) && info.st_mode | S_IXUSR ) ) )
+                                ( S_ISREG( info.st_mode ) || S_ISLNK( info.st_mode ) || ( strstr( fullname, ".clip" ) && info.st_mode | S_IXUSR ) ) )
                                valerie_response_printf( cmd_arg->response, 1024, "\"%s\" %llu\n", de[i]->d_name, (unsigned long long) info.st_size );
                        free( de[ i ] );
                }
index 563a769a0a5be6e26876113514b9ff1f40f0c85a..82a5b5913233ece076f3a6c4897396b09e0c4ea8 100644 (file)
@@ -147,7 +147,7 @@ static int connection_read( int fd, char *command, int length )
        char *cr = strchr( command, '\r');
        if ( cr != NULL ) 
                cr[0] = '\0';
-       if ( eof_chk || strncmp( command, "BYE", 3 ) == 0 ) 
+       if ( eof_chk || strncasecmp( command, "BYE", 3 ) == 0 ) 
                nchars = 0;
        return nchars;
 }
index faaf03f6635718dbc07f1df7f46365a8058a62b5..28dc6f5b48d105f3455833e482d904e51d24613f 100644 (file)
@@ -76,7 +76,7 @@ int main( int argc, char **argv  )
                while ( response != NULL && prompt( temp, 1024 ) )
                {
                        valerie_util_trim( valerie_util_chomp( temp ) );
-                       if ( !strcmp( temp, "BYE" ) )
+                       if ( !strcasecmp( temp, "BYE" ) )
                        {
                                break;
                        }
index 4a23e439c2c6a7599f66e85efc62df4906667b03..3a5db91b81a2087a685850e2c2239676d8b87040 100644 (file)
@@ -167,7 +167,7 @@ response_codes miracle_list_clips( command_argument cmd_arg )
                {
                        snprintf( fullname, 1023, "%s%s/%s", cmd_arg->root_dir, dir_name, de[i]->d_name );
                        if ( lstat( fullname, &info ) == 0 && 
-                                ( S_ISREG( info.st_mode ) || ( strstr( fullname, ".clip" ) && info.st_mode | S_IXUSR ) ) )
+                                ( S_ISREG( info.st_mode ) || S_ISLNK( info.st_mode ) || ( strstr( fullname, ".clip" ) && info.st_mode | S_IXUSR ) ) )
                                valerie_response_printf( cmd_arg->response, 1024, "\"%s\" %llu\n", de[i]->d_name, (unsigned long long) info.st_size );
                        free( de[ i ] );
                }
index 563a769a0a5be6e26876113514b9ff1f40f0c85a..82a5b5913233ece076f3a6c4897396b09e0c4ea8 100644 (file)
@@ -147,7 +147,7 @@ static int connection_read( int fd, char *command, int length )
        char *cr = strchr( command, '\r');
        if ( cr != NULL ) 
                cr[0] = '\0';
-       if ( eof_chk || strncmp( command, "BYE", 3 ) == 0 ) 
+       if ( eof_chk || strncasecmp( command, "BYE", 3 ) == 0 ) 
                nchars = 0;
        return nchars;
 }