From b996ba4156678b6a0a551b9a932867b2ade42344 Mon Sep 17 00:00:00 2001 From: Alessio Vanni Date: Sat, 24 Apr 2021 17:30:45 +0200 Subject: -Fix several incorrect uses of `i.e.' With some other changes to sentences here and there as I found appropriate. --- src/gns/gns_tld_api.c | 2 +- src/gns/gnunet-gns-import.c | 13 ++++++------- src/gns/gnunet-gns-proxy-ca.template | 4 ++-- src/gns/gnunet-gns-proxy.c | 4 ++-- src/gns/gnunet-service-gns.c | 2 +- src/gns/gnunet-service-gns_resolver.c | 4 ++-- src/gns/plugin_gnsrecord_gns.c | 4 ++-- 7 files changed, 16 insertions(+), 17 deletions(-) (limited to 'src/gns') diff --git a/src/gns/gns_tld_api.c b/src/gns/gns_tld_api.c index b883662ad..1b711cf40 100644 --- a/src/gns/gns_tld_api.c +++ b/src/gns/gns_tld_api.c @@ -235,7 +235,7 @@ identity_zone_cb (void *cls, * @param options local options for the lookup * @param proc processor to call on result * @param proc_cls closure for @a proc - * @return handle to the get request, NULL on error (i.e. bad configuration) + * @return handle to the get request, NULL on error (e.g. bad configuration) */ struct GNUNET_GNS_LookupWithTldRequest * GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle, diff --git a/src/gns/gnunet-gns-import.c b/src/gns/gnunet-gns-import.c index 972fb49cd..e99c4d3dd 100644 --- a/src/gns/gnunet-gns-import.c +++ b/src/gns/gnunet-gns-import.c @@ -272,13 +272,12 @@ zone_iteration_finished (void *cls) * with 'NULL' for 'ego'. That does NOT mean that the callback won't * be invoked in the future or that there was an error. * - * When used with 'GNUNET_IDENTITY_create' or 'GNUNET_IDENTITY_get', - * this function is only called ONCE, and 'NULL' being passed in - * 'ego' does indicate an error (i.e. name is taken or no default - * value is known). If 'ego' is non-NULL and if '*ctx' - * is set in those callbacks, the value WILL be passed to a subsequent - * call to the identity callback of 'GNUNET_IDENTITY_connect' (if - * that one was not NULL). + * When used with 'GNUNET_IDENTITY_create' or 'GNUNET_IDENTITY_get', this + * function is only called ONCE, and 'NULL' being passed in 'ego' does + * indicate an error (for example because name is taken or no default value is + * known). If 'ego' is non-NULL and if '*ctx' is set in those callbacks, the + * value WILL be passed to a subsequent call to the identity callback of + * 'GNUNET_IDENTITY_connect' (if that one was not NULL). * * When an identity is renamed, this function is called with the * (known) ego but the NEW identifier. diff --git a/src/gns/gnunet-gns-proxy-ca.template b/src/gns/gnunet-gns-proxy-ca.template index 32ee27fcd..541e3a355 100644 --- a/src/gns/gnunet-gns-proxy-ca.template +++ b/src/gns/gnunet-gns-proxy-ca.template @@ -51,7 +51,7 @@ cn = "GNS Proxy CA" #dn = "cn = Nikos,st = New\, Something,C=GR,surName=Mavrogiannopoulos,2.5.4.9=Arkadias" # The serial number of the certificate -# The value is in decimal (i.e. 1963) or hex (i.e. 0x07ab). +# The value is in decimal (e.g. 1963) or hex (e.g. 0x07ab). # Comment the field for a random serial number. #serial = 007 @@ -283,7 +283,7 @@ tls_www_server #crl_next_update = 43 # this is the 5th CRL by this CA -# The value is in decimal (i.e. 1963) or hex (i.e. 0x07ab). +# The value is in decimal (e.g. 1963) or hex (e.g. 0x07ab). # Comment the field for a time-based number. # Time-based CRL numbers generated in GnuTLS 3.6.3 and later # are significantly larger than those generated in previous diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index d02f0f576..5e3f9d6df 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -1811,7 +1811,7 @@ con_val_iter (void *cls, * @param con MHD connection handle * @param url the url in the request * @param meth the HTTP method used ("GET", "PUT", etc.) - * @param ver the HTTP version string (i.e. "HTTP/1.1") + * @param ver the HTTP version string ("HTTP/1.1" for version 1.1, etc.) * @param upload_data the data being uploaded (excluding HEADERS, * for a POST that fits into memory and that is encoded * with a supported encoding, the POST data will NOT be @@ -2855,7 +2855,7 @@ lookup_ssl_httpd (const char*domain) /** * Task run when a Socks5Request somehow fails to be associated with - * an MHD connection (i.e. because the client never speaks HTTP after + * an MHD connection (e.g. because the client never speaks HTTP after * the SOCKS5 handshake). Clean up. * * @param cls the `struct Socks5Request *` diff --git a/src/gns/gnunet-service-gns.c b/src/gns/gnunet-service-gns.c index 52300ae3b..5833f4d0b 100644 --- a/src/gns/gnunet-service-gns.c +++ b/src/gns/gnunet-service-gns.c @@ -104,7 +104,7 @@ struct GnsClient /** * Representation of a TLD, mapping the respective TLD string - * (i.e. ".gnu") to the respective public key of the zone. + * (e.g. ".gnu") to the respective public key of the zone. */ struct GNS_TopLevelDomain { diff --git a/src/gns/gnunet-service-gns_resolver.c b/src/gns/gnunet-service-gns_resolver.c index 2f8a55804..784a6ee6d 100644 --- a/src/gns/gnunet-service-gns_resolver.c +++ b/src/gns/gnunet-service-gns_resolver.c @@ -418,7 +418,7 @@ struct GNS_ResolverHandle /** * We increment the loop limiter for each step in a recursive - * resolution. If it passes our @e loop_threshold (i.e. due to + * resolution. If it passes our @e loop_threshold (e.g. due to * self-recursion in the resolution, i.e CNAME fun), we stop. */ unsigned int loop_limiter; @@ -516,7 +516,7 @@ static const struct GNUNET_CONFIGURATION_Handle *cfg; /** * Determine if this name is canonical (is a legal name in a zone, without delegation); * note that we do not test that the name does not contain illegal characters, we only - * test for delegation. Note that service records (i.e. _foo._srv) are canonical names + * test for delegation. Note that service records (like _foo._srv) are canonical names * even though they consist of multiple labels. * * Examples: diff --git a/src/gns/plugin_gnsrecord_gns.c b/src/gns/plugin_gnsrecord_gns.c index a2ad0b905..391144925 100644 --- a/src/gns/plugin_gnsrecord_gns.c +++ b/src/gns/plugin_gnsrecord_gns.c @@ -327,7 +327,7 @@ static struct /** - * Convert a type name (i.e. "AAAA") to the corresponding number. + * Convert a type name (e.g. "AAAA") to the corresponding number. * * @param cls closure, unused * @param gns_typename name to convert @@ -347,7 +347,7 @@ gns_typename_to_number (void *cls, const char *gns_typename) /** - * Convert a type number (i.e. 1) to the corresponding type string (i.e. "A") + * Convert a type number to the corresponding type string (e.g. 1 to "A") * * @param cls closure, unused * @param type number of a type to convert -- cgit v1.2.3