diff options
author | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-13 10:14:41 +0000 |
---|---|---|
committer | Damien Laniel <dlaniel@entrouvert.com> | 2007-06-13 10:14:41 +0000 |
commit | 1f802571d03bb9f33ec5800a57145d0e6531aa15 (patch) | |
tree | 061a96b43cc3227cf7ad81dbd07a9bb97d4c1cc0 | |
parent | bd0913130c776210e5ecc10d70fd665025447ec7 (diff) | |
download | lasso-1f802571d03bb9f33ec5800a57145d0e6531aa15.tar.gz lasso-1f802571d03bb9f33ec5800a57145d0e6531aa15.tar.xz lasso-1f802571d03bb9f33ec5800a57145d0e6531aa15.zip |
replaced two strings with a constant
-rw-r--r-- | lasso/id-wsf-2.0/discovery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lasso/id-wsf-2.0/discovery.c b/lasso/id-wsf-2.0/discovery.c index a8b425d2..8d77716f 100644 --- a/lasso/id-wsf-2.0/discovery.c +++ b/lasso/id-wsf-2.0/discovery.c @@ -381,7 +381,7 @@ lasso_idwsf2_discovery_process_metadata_association_add_response_msg( if (response->Status == NULL || response->Status->code == NULL) { return LASSO_PROFILE_ERROR_MISSING_STATUS_CODE; } - if (strcmp(response->Status->code, "OK") != 0) { + if (strcmp(response->Status->code, LASSO_DISCO_STATUS_CODE_OK) != 0) { return LASSO_DISCOVERY_ERROR_SVC_METADATA_ASSOCIATION_ADD_FAILED; } @@ -670,7 +670,7 @@ lasso_idwsf2_discovery_process_query_response_msg(LassoIdWsf2Discovery *discover if (response->Status == NULL || response->Status->code == NULL) { return LASSO_PROFILE_ERROR_MISSING_STATUS_CODE; } - if (strcmp(response->Status->code, "OK") != 0) { + if (strcmp(response->Status->code, LASSO_DISCO_STATUS_CODE_OK) != 0) { return LASSO_DISCOVERY_ERROR_SVC_METADATA_ASSOCIATION_ADD_FAILED; } |