From: Sachin Kamboj Date: Tue, 16 Jan 2007 07:20:41 +0000 (-0500) Subject: ntp_control.c: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ceab78501556f550141fea962c1e65ff7555be15;p=thirdparty%2Fntp.git ntp_control.c: Added configure prototype ntp_control.h: Added opcode for configure. rsa_md5.h: Removed double bracket bk: 45ac7cc9vI_ZGcIn9MeZD6R3ebBaCQ --- diff --git a/include/ntp_control.h b/include/ntp_control.h index c299794534..50f84e9734 100644 --- a/include/ntp_control.h +++ b/include/ntp_control.h @@ -53,6 +53,7 @@ struct ntp_control { #define CTL_OP_WRITECLOCK 5 #define CTL_OP_SETTRAP 6 #define CTL_OP_ASYNCMSG 7 +#define CTL_OP_CONFIGURE 8 #define CTL_OP_UNSETTRAP 31 /* diff --git a/include/rsa_md5.h b/include/rsa_md5.h index 8241647601..78d5dc9ad7 100644 --- a/include/rsa_md5.h +++ b/include/rsa_md5.h @@ -39,10 +39,10 @@ typedef struct { unsigned char buffer[64]; /* input buffer */ } MD5_CTX; -void MD5Init PROTO_LIST ((MD5_CTX *)); +void MD5Init PROTO_LIST (MD5_CTX *); void MD5Update PROTO_LIST - ((MD5_CTX *, unsigned char *, unsigned int)); -void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *)); + (MD5_CTX *, unsigned char *, unsigned int); +void MD5Final PROTO_LIST (unsigned char [16], MD5_CTX *); #ifdef __cplusplus } diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c index ed21df98cc..96f3676395 100644 --- a/ntpd/ntp_control.c +++ b/ntpd/ntp_control.c @@ -77,6 +77,7 @@ static void read_clock_status (struct recvbuf *, int); static void write_clock_status (struct recvbuf *, int); static void set_trap (struct recvbuf *, int); static void unset_trap (struct recvbuf *, int); +static void configure (struct recvbuf *, int); static struct ctl_trap *ctlfindtrap (struct sockaddr_storage *, struct interface *);