[7389] in Athena Bugs

home help back first fref pref prev next nref lref last post

more lpr type bugs

daemon@ATHENA.MIT.EDU (erikkay@ATHENA.MIT.EDU)
Wed Apr 3 00:49:40 1991

From: erikkay@ATHENA.MIT.EDU
To: bugs@ATHENA.MIT.EDU
Date: Wed, 03 Apr 91 00:49:28 EST


you know, this is getting to be a habit.

I was building lpr stuff on the NeXT and ran across the following
problems in recvjob.c:

line 653

            if((s1=recv(fd, inbuf, 36)) != 36) {

while the man page says:

     cc = recv(s, buf, len, flags)
     int cc, s;
     char *buf;
     int len, flags;


and in line 714:

	            syslog("lpd: ACL file not set");

this will break if it ever actually occurs.

this is the man page for syslog:

     syslog(priority, message, parameters ... )
     char *message;


of course, these are only problems on an ANSI compiler...

-Erik

home help back first fref pref prev next nref lref last post