]> arthur.barton.de Git - netatalk.git/blobdiff - bin/pap/pap.c
Warning fixes.
[netatalk.git] / bin / pap / pap.c
index 2d647ef1cf218acb6b0e05645619faf50e97c650..3fba619c95a8ed2ced37b71680c02c53111150de 100644 (file)
@@ -296,7 +296,7 @@ DEBUG( printf( "< STATUS\n" ), fflush( stdout ));
 
        memcpy( st_buf, (char *) rniov[ 0 ].iov_base + 9, 
                ((char *)rniov[ 0 ].iov_base)[ 8 ] );
-       st_buf[ ((char *)rniov[ 0 ].iov_base)[ 8 ]] = '\0';
+       st_buf[ (int) ((char *)rniov[ 0 ].iov_base)[ 8 ]] = '\0';
        if ( strstr( st_buf, "idle" ) != NULL ) {
            waitforidle = 0;
        } else {
@@ -821,7 +821,7 @@ DEBUG( printf( "< STATUS\n" ), fflush( stdout ));
 
                memcpy( st_buf, (char *) rniov[ 0 ].iov_base + 9, 
                        ((char *)rniov[ 0 ].iov_base)[ 8 ] );
-               st_buf[ ((char *)rniov[ 0 ].iov_base)[ 8 ]] = '\0';
+               st_buf[ (int) ((char *)rniov[ 0 ].iov_base)[ 8 ]] = '\0';
                if ( strstr( st_buf, "waiting" ) != NULL ) {
                    waitforprinter = 0;
                }