Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 May 1999 15:17:53 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, phk@FreeBSD.org
Subject:   Re: cvs commit: src/sbin/mknod mknod.c
Message-ID:  <199905100517.PAA08696@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>  Modified files:
>    sbin/mknod           mknod.c 
>  Log:
>  Fix mknod which overloaded a little too much on "minor" and "major"

mknod wasn't broken (except for K&R compilers).  In ANSI C, the macro
major() doesn't conflict with the local variable `major'.

nfs_serv.c has local variables named major and minor, but there is
no problem (except for K&R compilers) since it doesn't use major()
or minor().

Applications that #define `dev', `x' or `y' before including <sys/types.h>
are also broken.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905100517.PAA08696>