]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix from lint for ignored return value.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Jul 2021 15:46:04 +0000 (17:46 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Jul 2021 15:46:04 +0000 (17:46 +0200)
doc/Changelog
validator/autotrust.c

index 993191b4c0be2cff621e21fd82ce76ebd105a420..f1d65b3822222998a5de02188e875c9fbf8b99bd 100644 (file)
@@ -11,6 +11,7 @@
          syntax errors.
        - review fix to remove duplicate error printout.
        - Insert header into testcode/readzone.c, it was missing.
+       - Fix from lint for ignored return value.
 
 6 July 2021: Wouter
        - iana portlist update.
index fe17df2d5ed166a6a8470eb783aec38b21dd57af..9643a3ddb38b5e005b52bb9c10ad32890a943233 100644 (file)
@@ -2275,7 +2275,7 @@ autr_debug_print_ta(struct autr_ta* ta)
                return;
        }
        if(str[0]) str[strlen(str)-1]=0; /* remove newline */
-       autr_ctime_r(&ta->last_change, buf);
+       (void)autr_ctime_r(&ta->last_change, buf);
        if(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
        log_info("[%s] %s ;;state:%d ;;pending_count:%d%s%s last:%s",
                trustanchor_state2str(ta->s), str, ta->s, ta->pending_count,
@@ -2302,13 +2302,13 @@ autr_debug_print_tp(struct trust_anchor* tp)
                log_packed_rrset(NO_VERBOSE, "DNSKEY:", tp->dnskey_rrset);
        }
        log_info("file %s", tp->autr->file);
-       autr_ctime_r(&tp->autr->last_queried, buf);
+       (void)autr_ctime_r(&tp->autr->last_queried, buf);
        if(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
        log_info("last_queried: %u %s", (unsigned)tp->autr->last_queried, buf);
-       autr_ctime_r(&tp->autr->last_success, buf);
+       (void)autr_ctime_r(&tp->autr->last_success, buf);
        if(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
        log_info("last_success: %u %s", (unsigned)tp->autr->last_success, buf);
-       autr_ctime_r(&tp->autr->next_probe_time, buf);
+       (void)autr_ctime_r(&tp->autr->next_probe_time, buf);
        if(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */
        log_info("next_probe_time: %u %s", (unsigned)tp->autr->next_probe_time,
                buf);