From c03c7227ba8ac9acc8992c2166a72bea383c09d6 Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 9 Sep 2019 09:55:18 +0000 Subject: plibc removal: sscanf, win32 socket corrections --- src/credential/credential_misc.c | 2 +- src/credential/plugin_gnsrecord_credential.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/credential') diff --git a/src/credential/credential_misc.c b/src/credential/credential_misc.c index be6d124a6..bc8a28912 100644 --- a/src/credential/credential_misc.c +++ b/src/credential/credential_misc.c @@ -77,7 +77,7 @@ GNUNET_CREDENTIAL_credential_from_string(const char* s) struct GNUNET_CRYPTO_EcdsaSignature *sig; struct GNUNET_TIME_Absolute etime_abs; - if (5 != SSCANF(s, + if (5 != sscanf(s, "%52s.%253s -> %52s | %s | %" SCNu64, issuer_pkey, name, diff --git a/src/credential/plugin_gnsrecord_credential.c b/src/credential/plugin_gnsrecord_credential.c index 9207aa7ad..134153c13 100644 --- a/src/credential/plugin_gnsrecord_credential.c +++ b/src/credential/plugin_gnsrecord_credential.c @@ -162,7 +162,7 @@ credential_string_to_value(void *cls, uint32_t type, const char *s, *data_size = sizeof(struct GNUNET_CREDENTIAL_DelegationRecord); while (NULL != token) { - matches = SSCANF(token, "%s %s", subject_pkey, attr_str); + matches = sscanf(token, "%s %s", subject_pkey, attr_str); if (0 == matches) { GNUNET_log(GNUNET_ERROR_TYPE_ERROR, @@ -195,7 +195,7 @@ credential_string_to_value(void *cls, uint32_t type, const char *s, memset(set, 0, sizeof(struct GNUNET_CREDENTIAL_DelegationSet) * entries); for (i = 0; i < entries; i++) { - matches = SSCANF(token, "%s %s", subject_pkey, attr_str); + matches = sscanf(token, "%s %s", subject_pkey, attr_str); GNUNET_CRYPTO_ecdsa_public_key_from_string( subject_pkey, strlen(subject_pkey), &set[i].subject_key); if (2 == matches) -- cgit v1.2.3