The attached patch applies makes the latest version of lprng compile with
gcc4.

Regards
Andreas Jochens

diff -urN ../tmp-orig/lprng-3.8.28/src/common/krb5_auth.c 
./src/common/krb5_auth.c
--- ../tmp-orig/lprng-3.8.28/src/common/krb5_auth.c     2004-09-24 
20:19:57.000000000 +0000
+++ ./src/common/krb5_auth.c    2005-08-24 15:59:31.000000000 +0000
@@ -922,7 +922,7 @@
                nstored = 0;
        }
        
-       if ((cc = Read_fd_len_timeout(transfer_timeout, fd, len_buf, 4)) != 4) {
+       if ((cc = Read_fd_len_timeout(transfer_timeout, fd, (char*) len_buf, 
4)) != 4) {
                /* XXX can't read enough, pipe must have closed */
                return(0);
        }
diff -urN ../tmp-orig/lprng-3.8.28/src/common/lpq.c ./src/common/lpq.c
--- ../tmp-orig/lprng-3.8.28/src/common/lpq.c   2004-09-24 20:19:58.000000000 
+0000
+++ ./src/common/lpq.c  2005-08-24 16:08:38.000000000 +0000
@@ -449,7 +449,7 @@
        if( (pid = dofork(0)) == 0 ){
                setuid( OriginalRUID );
                close_on_exec(3);
-               execl(CLEAR,0);
+               execl(CLEAR,0,NULL);
                exit(1);
        } else if( pid < 0 ){
                LOGERR_DIE(LOG_ERR) _("fork() failed") );


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to