[Git][NTPsec/ntpsec][master] Compiler warning fixes.

Eric S. Raymond gitlab at mg.gitlab.com
Tue Jan 29 20:31:16 UTC 2019


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


Commits:
862d82c6 by Eric S. Raymond at 2019-01-29T19:49:57Z
Compiler warning fixes.

- - - - -


3 changed files:

- include/ntpd.h
- ntpd/ntp_util.c
- ntpd/nts.c


Changes:

=====================================
include/ntpd.h
=====================================
@@ -429,6 +429,6 @@ int nts_validate(struct parsed_pkt *, struct ntspeer_t *);
 int nts_decorate(uint32_t *, size_t, struct ntspeer_t *);
 
 /* ntp_util.c */
-extern char * refid_dump(refid_t, int);
+extern char * refid_dump(const refid_t, int);
 
 #endif	/* GUARD_NTPD_H */


=====================================
ntpd/ntp_util.c
=====================================
@@ -789,7 +789,7 @@ ntpd_time_stepped(void)
 }
 
 char *
-refid_dump(refid_t refid, int mode)
+refid_dump(const refid_t refid, int mode)
 {
     static char outbuf[16];
     char const *fmt;


=====================================
ntpd/nts.c
=====================================
@@ -101,6 +101,7 @@ int nts_decorate(uint32_t *extdata, size_t extlen, struct ntspeer_t *ntspeer)
 	UNUSED_ARG(extdata);
 	UNUSED_ARG(extlen);
 	UNUSED_ARG(ntspeer);
+	return 0;
 }
 
 /* end */



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

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/862d82c67d35904c30e8fc650cb77533eeeb9505
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/20190129/fc92e7ba/attachment.html>


More information about the vc mailing list