]> diplodocus.org Git - nmh/commitdiff
Fix up some const and unsigned char warnings.
authorKen Hornstein <kenh@pobox.com>
Wed, 25 Oct 2017 17:16:04 +0000 (13:16 -0400)
committerKen Hornstein <kenh@pobox.com>
Wed, 25 Oct 2017 17:16:04 +0000 (13:16 -0400)
sbr/netsec.c

index 4b5edcf..3b546a3 100644 (file)
@@ -881,7 +881,7 @@ netsec_flush(netsec_context *nsc, char **errstr)
 
     if (nsc->ns_snoop) {
        unsigned int snoopoutlen = netoutlen;
-       const char *snoopoutbuf = nsc->ns_outbuffer;
+       const char *snoopoutbuf = (const char *) nsc->ns_outbuffer;
 
        while (snoopoutlen > 0) {
            const char *end = strpbrk(snoopoutbuf, "\r\n");
@@ -913,7 +913,7 @@ netsec_flush(netsec_context *nsc, char **errstr)
 #endif /* TLS_SUPPORT */
            fprintf(stderr, "=> ");
            if (nsc->ns_snoop_cb) {
-               char *ptr;
+               const char *ptr;
                unsigned int cb_len = outlen;
 
                if (nsc->ns_snoop_savebuf) {