Skip to content

Commit

Permalink
Remove OS/X warning re: get_string
Browse files Browse the repository at this point in the history
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@843 d19143bc-622f-0410-bfdd-b5b2a6649095
  • Loading branch information
lilo_booter committed Oct 3, 2005
1 parent 682bf90 commit e7aef2a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/humperdink/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ valerie_error_code dv_demo_execute( dv_demo demo )
terminated = 1;
printf( "Command> " );

if ( chomp( get_string( command, 10240, "" ) ) != NULL )
if ( chomp( io_get_string( command, 10240, "" ) ) != NULL )
{
if ( strcmp( command, "" ) )
{
Expand Down
2 changes: 1 addition & 1 deletion src/humperdink/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ char *strip_quotes( char *input )
return input;
}

char *get_string( char *output, int maxlength, char *use )
char *io_get_string( char *output, int maxlength, char *use )
{
char *value = NULL;
strcpy( output, use );
Expand Down
2 changes: 1 addition & 1 deletion src/humperdink/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
extern char *chomp( char * );
extern char *trim( char * );
extern char *strip_quotes( char * );
extern char *get_string( char *, int, char * );
extern char *io_get_string( char *, int, char * );
extern int *get_int( int *, int );
extern void term_init( );
extern int term_read( );
Expand Down
2 changes: 1 addition & 1 deletion src/humperdink/remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ static valerie_parser create_parser( )

printf( "Server [localhost]: " );

if ( get_string( server, sizeof( server ), "localhost" ) != NULL )
if ( io_get_string( server, sizeof( server ), "localhost" ) != NULL )
{
printf( "Port [5250]: " );

Expand Down
13 changes: 0 additions & 13 deletions src/inigo/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,19 +76,6 @@ char *strip_quotes( char *input )
return input;
}

char *get_string( char *output, int maxlength, char *use )
{
char *value = NULL;
strcpy( output, use );
if ( trim( chomp( fgets( output, maxlength, stdin ) ) ) != NULL )
{
if ( !strcmp( output, "" ) )
strcpy( output, use );
value = output;
}
return value;
}

int *get_int( int *output, int use )
{
int *value = NULL;
Expand Down

0 comments on commit e7aef2a

Please sign in to comment.