Cast to strlen expected type to avoid warning.
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 08:39:40 +0000 (11:39 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 10 Jul 2007 08:39:40 +0000 (11:39 +0300)
rpmio/rpmpgp.c

index fa42a99..628ca2e 100644 (file)
@@ -859,7 +859,7 @@ int pgpPrtComment(pgpTag tag, const byte *h, unsigned int hlen)
        if (*h >= ' ' && *h <= 'z') {
            if (_print)
                fprintf(stderr, "%s", (const char *)h);
-           j = strlen(h);
+           j = strlen((const char*)h);
            while (h[j] == '\0')
                j++;
        } else {