[Git][NTPsec/ntpsec][master] ntp_control: Fix some cc warnings.

Gary E. Miller gitlab at mg.gitlab.com
Wed Jan 30 03:27:34 UTC 2019


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
ec9bb3be by Gary E. Miller at 2019-01-30T03:26:56Z
ntp_control: Fix some cc warnings.

- - - - -


1 changed file:

- ntpd/ntp_control.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
@@ -1401,13 +1401,13 @@ ctl_putrefid(
 {
         char    output[16];
         char    buf[REFIDLEN + 1];
-        int i;
+        unsigned int i;
 
         strlcpy(output, tag, sizeof(output));
         strlcat(output, "=", sizeof(output));
 
         /* grab the refid */
-        strlcpy(buf, refid, sizeof(buf));
+        strlcpy(buf, (const char*)refid, sizeof(buf));
 
         /* be sure it is printable, how can it not be? */
         for (i = 0; i < REFIDLEN; i++) {
@@ -2423,7 +2423,7 @@ ctl_putclock(
 		break;
 
 	case CC_FUDGEVAL2:
-		/* Yes, the clocl refid is passed as a 32 bit in fudgeval2 */
+		/* Yes, the clock refid is passed as a 32 bit in fudgeval2 */
 		if (mustput || (pcs->haveflags & CLK_HAVEVAL2)) {
 			refid_t stringized;
 			ntp_be32enc(stringized, pcs->fudgeval2);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ec9bb3be3cc60c034bfa08cfdbc736e7b054083e

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ec9bb3be3cc60c034bfa08cfdbc736e7b054083e
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20190130/2972000c/attachment.html>


More information about the vc mailing list