X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=lib%2Fvercmp.c;h=91d536305cdcf97d6c84d0b32343a1f794d69c73;hb=c3a6daeacf5c6873cec41fa35ef5b917d335ad6a;hp=8cbad7354ec92035ab0264c9ebc4b35018b48b34;hpb=ea8f3e12fe9fc4b4ff43c21505cb36f36a0a52e4;p=zpackage diff --git a/lib/vercmp.c b/lib/vercmp.c index 8cbad73..91d5363 100644 --- a/lib/vercmp.c +++ b/lib/vercmp.c @@ -17,7 +17,7 @@ struct ver { char *relstr; }; -static void init_ver(struct ver *v, char *s) { +static void init_ver(struct ver *v, const char *s) { strncpy(v->str, s, 1023); v->str[1023] = 0; v->s = 0; @@ -109,7 +109,7 @@ static int next_comp(struct ver *v) { /* * alphabetic less than numeric */ -int zpm_vercmp(char *vsa, char *vsb) { +int zpm_vercmp(const char *vsa, const char *vsb) { struct ver a, b; int an, bn; int cmp;