From 1c679864237c6bbbba0190c15d7ce89f1577ef07 Mon Sep 17 00:00:00 2001 From: Juan Carlos Luciani Date: Wed, 21 Mar 2007 23:14:10 +0000 Subject: [PATCH] Fixing Linux build errors. --- CASA-auth-token/client/library/mechanisms/krb5/linux/get.c | 4 ++-- CASA-auth-token/client/library/mechanisms/krb5/windows/get.c | 4 ++-- CASA-auth-token/client/library/mechanisms/pwd/get.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CASA-auth-token/client/library/mechanisms/krb5/linux/get.c b/CASA-auth-token/client/library/mechanisms/krb5/linux/get.c index a26c20c6..511f6259 100644 --- a/CASA-auth-token/client/library/mechanisms/krb5/linux/get.c +++ b/CASA-auth-token/client/library/mechanisms/krb5/linux/get.c @@ -218,7 +218,7 @@ AuthTokenIf_GetAuthToken( // using the format settingName=settingvalue. No white space is allowed // as part of the mechanism information. char *pNextSettingToken; - char *pSettingValueToken = strtok_s(pMechInfo, ";", &pNextSettingToken); + char *pSettingValueToken = strtok_r(pMechInfo, ";", &pNextSettingToken); while (pSettingValueToken != NULL) { char *pNextToken; @@ -237,7 +237,7 @@ AuthTokenIf_GetAuthToken( printf("Bad setting\n"); } - pSettingValueToken = strtok_s(NULL, ";", &pNextSettingToken); + pSettingValueToken = strtok_r(NULL, ";", &pNextSettingToken); } } diff --git a/CASA-auth-token/client/library/mechanisms/krb5/windows/get.c b/CASA-auth-token/client/library/mechanisms/krb5/windows/get.c index 10287b62..af63631d 100644 --- a/CASA-auth-token/client/library/mechanisms/krb5/windows/get.c +++ b/CASA-auth-token/client/library/mechanisms/krb5/windows/get.c @@ -127,7 +127,7 @@ AuthTokenIf_GetAuthToken( // using the format settingName=settingvalue. No white space is allowed // as part of the mechanism information. char *pNextSettingToken; - char *pSettingValueToken = strtok_s(pMechInfo, ";", &pNextSettingToken); + char *pSettingValueToken = strtok_r(pMechInfo, ";", &pNextSettingToken); while (pSettingValueToken != NULL) { char *pNextToken; @@ -146,7 +146,7 @@ AuthTokenIf_GetAuthToken( printf("Bad setting\n"); } - pSettingValueToken = strtok_s(NULL, ";", &pNextSettingToken); + pSettingValueToken = strtok_r(NULL, ";", &pNextSettingToken); } } diff --git a/CASA-auth-token/client/library/mechanisms/pwd/get.c b/CASA-auth-token/client/library/mechanisms/pwd/get.c index 2c012d4f..fe9e0204 100644 --- a/CASA-auth-token/client/library/mechanisms/pwd/get.c +++ b/CASA-auth-token/client/library/mechanisms/pwd/get.c @@ -329,7 +329,7 @@ AuthTokenIf_GetAuthToken( printf("Bad setting\n"); } - pSettingValueToken = strtok_s(NULL, ";", &pNextSettingToken); + pSettingValueToken = strtok_r(NULL, ";", &pNextSettingToken); } }