On Wed, Dec 06, 2006 at 07:46:50PM +0100, Jan Engelhardt wrote:
=20
Yep.
=20
modifying
son.
rning?
No, this program doesn't tickle the problem.. Try to compile this one:
<<<
struct mknod_args {
int mode;
int dev;
};
void __mknod(const void *data)
{
const struct mknod_args *args =3D data;
args->mode =3D 0;
}
int main(void) {
const struct mknod_args *m;
__mknod(m);
return 0;
}
$ gcc -Wall -c test.c
test.c: In function =E2mknod=E2test.c:10: error: assignment of read-onl=
y location
Josef "Jeff" Sipek.
--=20
Reality is merely an illusion, albeit a very persistent one.
- Albert Einstein