[Git][NTPsec/ntpsec][master] Fix scan-build warnings about unused variables.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Oct 6 13:09:47 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
d66c5fb0 by Eric S. Raymond at 2016-10-06T09:08:34-04:00
Fix scan-build warnings about unused variables.

- - - - -


3 changed files:

- libntp/machines.c
- libntp/ntp_worker.c
- ntpdig/networking.c


Changes:

=====================================
libntp/machines.c
=====================================
--- a/libntp/machines.c
+++ b/libntp/machines.c
@@ -89,9 +89,6 @@ ntp_set_tod(
 	int		saved_errno;
 
 	TRACE(1, ("In ntp_set_tod\n"));
-	rc = -1;
-	saved_errno = 0;
-
 #ifdef HAVE_CLOCK_SETTIME
 	errno = 0;
 	rc = clock_settime(CLOCK_REALTIME, tvs);


=====================================
libntp/ntp_worker.c
=====================================
--- a/libntp/ntp_worker.c
+++ b/libntp/ntp_worker.c
@@ -261,7 +261,6 @@ blocking_child_common(
 	while (!say_bye) {
 		req = receive_blocking_req_internal(c);
 		if (NULL == req) {
-			say_bye = true;
 			break;
 		}
 


=====================================
ntpdig/networking.c
=====================================
--- a/ntpdig/networking.c
+++ b/ntpdig/networking.c
@@ -114,7 +114,6 @@ process_pkt (
 	l_fp		sent_xmt;
 	l_fp		resp_org;
 
-	key_id = 0;
 	pkt_key = NULL;
 	is_authentic = authenticate ? 0 : -1;
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/d66c5fb06b816a4bfd56eec63bbdd9f6aa96b2e1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161006/f9102fc3/attachment.html>


More information about the vc mailing list