fix several warnings
Probably fixes a bug in es/CMA, which has been deprecated for a long time in favor of the EDO module anyway.
This commit is contained in:
parent
48ca0fa5b8
commit
22275e434b
15 changed files with 51 additions and 36 deletions
|
|
@ -42,16 +42,16 @@ int Check( PCom *com )
|
|||
}
|
||||
|
||||
|
||||
PCom * PipeComOpen( char *prog )
|
||||
PCom * PipeComOpen( const char *prog )
|
||||
{
|
||||
char *args[2];
|
||||
args[0] = prog;
|
||||
args[0] = strdup( prog );
|
||||
args[1] = NULL;
|
||||
return PipeComOpenArgv( prog, args );
|
||||
}
|
||||
|
||||
|
||||
PCom * PipeComOpenArgv( char *prog, char *argv[] )
|
||||
PCom * PipeComOpenArgv( const char *prog, char *argv[] )
|
||||
{
|
||||
int toFils[2];
|
||||
int toPere[2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue