From: Juergen Perlinger Date: Mon, 22 Apr 2019 09:57:53 +0000 (+0200) Subject: [Bug 3577] silence some nitpicking from MSVC X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60143f4f3bccda7a9f7fddf46bbebf2edb22295c;p=thirdparty%2Fntp.git [Bug 3577] silence some nitpicking from MSVC bk: 5cbd9021OiRp-gOfkQ5fnB32uENgdQ --- diff --git a/ntpd/refclock_jupiter.c b/ntpd/refclock_jupiter.c index 148c514e0..815786a37 100644 --- a/ntpd/refclock_jupiter.c +++ b/ntpd/refclock_jupiter.c @@ -131,24 +131,24 @@ struct instance { /* * Function prototypes */ -static void jupiter_canmsg (struct instance *, u_int); +static void jupiter_canmsg (struct instance * const, u_int); static u_short jupiter_cksum (u_short *, u_int); -static int jupiter_config (struct instance *); +static int jupiter_config (struct instance * const); static void jupiter_debug (struct peer *, const char *, const char *, ...) NTP_PRINTF(3, 4); -static const char * jupiter_parse_t (struct instance *, u_short *, l_fp); -static const char * jupiter_parse_gpos(struct instance *, u_short *); -static void jupiter_platform (struct instance *, u_int); +static const char * jupiter_parse_t (struct instance * const, u_short *, l_fp); +static const char * jupiter_parse_gpos(struct instance * const, u_short *); +static void jupiter_platform(struct instance * const, u_int); static void jupiter_poll (int, struct peer *); static void jupiter_control (int, const struct refclockstat *, struct refclockstat *, struct peer *); -static int jupiter_ppsapi (struct instance *); -static int jupiter_pps (struct instance *); -static int jupiter_recv (struct instance *); -static void jupiter_receive (struct recvbuf *rbufp); -static void jupiter_reqmsg (struct instance *, u_int, u_int); -static void jupiter_reqonemsg(struct instance *, u_int); -static char * jupiter_send (struct instance *, struct jheader *); +static int jupiter_ppsapi (struct instance * const); +static int jupiter_pps (struct instance * const); +static int jupiter_recv (struct instance * const); +static void jupiter_receive (struct recvbuf * const rbufp); +static void jupiter_reqmsg (struct instance * const, u_int, u_int); +static void jupiter_reqonemsg(struct instance * const, u_int); +static char * jupiter_send (struct instance * const, struct jheader *); static void jupiter_shutdown(int, struct peer *); static int jupiter_start (int, struct peer *); static void jupiter_ticker (int, struct peer *);