mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
strsep() is a FreeBSDism. Switch over to strtok().
This commit is contained in:
parent
a4609fc42b
commit
5d272eeab8
1 changed files with 3 additions and 3 deletions
|
@ -351,7 +351,7 @@ OGG_LoadPlaylist ( char *playlist )
|
|||
}
|
||||
|
||||
/* Count the files in playlist. */
|
||||
for ( ptr = strsep( (char **) &buffer, "\n" ); ptr != NULL; ptr = strsep( NULL, "\n" ) )
|
||||
for ( ptr = strtok( (char *)buffer, "\n" ); ptr != NULL; ptr = strtok( NULL, "\n" ) )
|
||||
{
|
||||
if ( (byte *) ptr != buffer )
|
||||
{
|
||||
|
@ -369,9 +369,9 @@ OGG_LoadPlaylist ( char *playlist )
|
|||
|
||||
i = 0;
|
||||
|
||||
for ( ptr = strsep( (char **) &buffer, "\n" );
|
||||
for ( ptr = strtok( (char *) buffer, "\n" );
|
||||
ptr != NULL;
|
||||
ptr = strsep( NULL, "\n" ) )
|
||||
ptr = strtok( NULL, "\n" ) )
|
||||
{
|
||||
if ( OGG_Check( va( "%s/%s", OGG_DIR, ptr ) ) )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue