]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
constantly more fun
authorDave Hart <hart@ntp.org>
Thu, 14 Oct 2010 14:47:37 +0000 (14:47 +0000)
committerDave Hart <hart@ntp.org>
Thu, 14 Oct 2010 14:47:37 +0000 (14:47 +0000)
bk: 4cb71809ypb1uVdHV8GGDl0qp6-Fvg

ntpq/libntpq.c

index 9363d0743ebac10a0cc18ba2c02b3f94a5149b50..401af80e512043600a27e62ab21a3850c8e7c097 100644 (file)
@@ -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);