[4801] in Athena Bugs
Re: Saber msg: v2.1 (4/24/89 lycus vax Unix 4042 0)
daemon@ATHENA.MIT.EDU (marc@ATHENA.MIT.EDU)
Thu Apr 19 22:26:01 1990
From: marc@ATHENA.MIT.EDU
To: jtkohl@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU, jtkohl@ATHENA.MIT.EDU
In-Reply-To: [4795] in Athena Bugs
Reply-To: marc@MIT.EDU
Date: Thu, 19 Apr 90 22:25:44 EDT
>> int foo(msg)
>> const struct bar *msg;
>> {
>> printf("message: %s\n",msg->data);
>> }
I may be wrong (parsing this stuff is worse for humans than
computers), but that doesn't declare msg as a const pointer. It makes
it a pointer to a const struct, and you don't want that.
How about:
int foo(msg)
struct bar * const msg;
{
printf("message: %s\n",msg->data);
}
That works.
Marc