Fixing Linux build errors.

This commit is contained in:
Juan Carlos Luciani 2007-03-21 23:14:10 +00:00
parent 6a56e24838
commit 1c67986423
3 changed files with 5 additions and 5 deletions

View File

@ -218,7 +218,7 @@ AuthTokenIf_GetAuthToken(
// using the format settingName=settingvalue. No white space is allowed // using the format settingName=settingvalue. No white space is allowed
// as part of the mechanism information. // as part of the mechanism information.
char *pNextSettingToken; char *pNextSettingToken;
char *pSettingValueToken = strtok_s(pMechInfo, ";", &pNextSettingToken); char *pSettingValueToken = strtok_r(pMechInfo, ";", &pNextSettingToken);
while (pSettingValueToken != NULL) while (pSettingValueToken != NULL)
{ {
char *pNextToken; char *pNextToken;
@ -237,7 +237,7 @@ AuthTokenIf_GetAuthToken(
printf("Bad setting\n"); printf("Bad setting\n");
} }
pSettingValueToken = strtok_s(NULL, ";", &pNextSettingToken); pSettingValueToken = strtok_r(NULL, ";", &pNextSettingToken);
} }
} }

View File

@ -127,7 +127,7 @@ AuthTokenIf_GetAuthToken(
// using the format settingName=settingvalue. No white space is allowed // using the format settingName=settingvalue. No white space is allowed
// as part of the mechanism information. // as part of the mechanism information.
char *pNextSettingToken; char *pNextSettingToken;
char *pSettingValueToken = strtok_s(pMechInfo, ";", &pNextSettingToken); char *pSettingValueToken = strtok_r(pMechInfo, ";", &pNextSettingToken);
while (pSettingValueToken != NULL) while (pSettingValueToken != NULL)
{ {
char *pNextToken; char *pNextToken;
@ -146,7 +146,7 @@ AuthTokenIf_GetAuthToken(
printf("Bad setting\n"); printf("Bad setting\n");
} }
pSettingValueToken = strtok_s(NULL, ";", &pNextSettingToken); pSettingValueToken = strtok_r(NULL, ";", &pNextSettingToken);
} }
} }

View File

@ -329,7 +329,7 @@ AuthTokenIf_GetAuthToken(
printf("Bad setting\n"); printf("Bad setting\n");
} }
pSettingValueToken = strtok_s(NULL, ";", &pNextSettingToken); pSettingValueToken = strtok_r(NULL, ";", &pNextSettingToken);
} }
} }