[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33568 - gnunet/src/gnsrecord
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33568 - gnunet/src/gnsrecord |
Date: |
Fri, 6 Jun 2014 14:31:36 +0200 |
Author: grothoff
Date: 2014-06-06 14:31:36 +0200 (Fri, 06 Jun 2014)
New Revision: 33568
Modified:
gnunet/src/gnsrecord/plugin_gnsrecord_dns.c
Log:
-fixes for consistency
Modified: gnunet/src/gnsrecord/plugin_gnsrecord_dns.c
===================================================================
--- gnunet/src/gnsrecord/plugin_gnsrecord_dns.c 2014-06-06 12:29:33 UTC (rev
33567)
+++ gnunet/src/gnsrecord/plugin_gnsrecord_dns.c 2014-06-06 12:31:36 UTC (rev
33568)
@@ -356,7 +356,7 @@
typep = strtok (sdup, " ");
/* TODO: add typep mnemonic conversion according to RFC 4398 */
if ( (NULL == typep) ||
- (1 != sscanf (typep,
+ (1 != SSCANF (typep,
"%u",
&type)) ||
(type > UINT16_MAX) )
@@ -366,7 +366,7 @@
}
keyp = strtok (NULL, " ");
if ( (NULL == keyp) ||
- (1 != sscanf (keyp,
+ (1 != SSCANF (keyp,
"%u",
&key)) ||
(key > UINT16_MAX) )
@@ -441,8 +441,13 @@
if (7 != SSCANF (s,
"rname=%253s mname=%253s %u,%u,%u,%u,%u",
- soa_rname, soa_mname,
- &soa_serial, &soa_refresh, &soa_retry, &soa_expire,
&soa_min))
+ soa_rname,
+ soa_mname,
+ &soa_serial,
+ &soa_refresh,
+ &soa_retry,
+ &soa_expire,
+ &soa_min))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
_("Unable to parse SOA record `%s'\n"),
@@ -464,9 +469,9 @@
&soa))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Failed to serialize SOA record with mname `%s' and rname
`%s'\n"),
- soa_mname,
- soa_rname);
+ _("Failed to serialize SOA record with mname `%s' and
rname `%s'\n"),
+ soa_mname,
+ soa_rname);
return GNUNET_SYSERR;
}
*data_size = off;
@@ -487,8 +492,8 @@
s))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Failed to serialize PTR record with value `%s'\n"),
- s);
+ _("Failed to serialize PTR record with value `%s'\n"),
+ s);
return GNUNET_SYSERR;
}
*data_size = off;
@@ -651,7 +656,7 @@
unsigned int i;
i=0;
- while ( (name_map[i].name != NULL) &&
+ while ( (NULL != name_map[i].name) &&
(0 != strcasecmp (dns_typename, name_map[i].name)) )
i++;
return name_map[i].number;
@@ -672,7 +677,7 @@
unsigned int i;
i=0;
- while ( (name_map[i].name != NULL) &&
+ while ( (NULL != name_map[i].name) &&
(type != name_map[i].number) )
i++;
return name_map[i].name;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33568 - gnunet/src/gnsrecord,
gnunet <=