From: Dave Hart Date: Thu, 14 Oct 2010 14:47:37 +0000 (+0000) Subject: constantly more fun X-Git-Tag: NTP_4_2_6P3_RC4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f30f469b8fa8b7e54ed12ebb8526b706f53bc138;p=thirdparty%2Fntp.git constantly more fun bk: 4cb71809ypb1uVdHV8GGDl0qp6-Fvg --- diff --git a/ntpq/libntpq.c b/ntpq/libntpq.c index 9363d0743..401af80e5 100644 --- a/ntpq/libntpq.c +++ b/ntpq/libntpq.c @@ -124,7 +124,7 @@ int ntpq_stripquotes ( char *resultbuf, char *srcbuf, int datalen, int maxlen ) size_t ntpq_getvar( - char * resultbuf, + const char * resultbuf, size_t datalen, const char * varname, char * varvalue, @@ -485,11 +485,11 @@ ntpq_read_sysvars( char * resultbuf, size_t maxsize) { - char * datap; - int res; - int i_dsize; - size_t dsize; - u_short rstatus; + const char * datap; + int res; + int i_dsize; + size_t dsize; + u_short rstatus; res = doquery(CTL_OP_READVAR, 0, 0, 0, NULL, &rstatus, &i_dsize, &datap);