summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-02-11 01:42:14 +0000
committerRoland McGrath <roland@gnu.org>2004-02-11 01:42:14 +0000
commit8709673947bc354f683fee371b7d9a5d70fe0fb8 (patch)
treee04f2825d6f2e374ac08a63c4f9efd7a2913c1e7 /server.c
parent53f09465536af6578dd0ea2f887d1dd7ff91179d (diff)
2004-02-10 Roland McGrath <roland@frob.com>
* user.c (WriteTypeCheck): Use BAD_TYPECHECK macro instead of type-pun. * server.c (WriteTypeCheck): Likewise. * utils.c (WriteBogusDefines): Write a #define for that macro. * utils.c (WriteCheckDecl): Write auto const, not static const. (WriteStaticShortDecl, WriteStaticLongDecl): Likewise.
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.c b/server.c
index f50337b..2768d80 100644
--- a/server.c
+++ b/server.c
@@ -418,7 +418,7 @@ WriteTypeCheck(FILE *file, register const argument_t *arg)
fprintf(file, "#if\tTypeCheck\n");
if (akCheck(arg->argKind, akbRequestQC))
- fprintf(file, "\tif (* (int *) &In%dP->%s != * (int *) &%sCheck)\n",
+ fprintf(file, "\tif (BAD_TYPECHECK(&In%dP->%s, &%sCheck))\n",
arg->argRequestPos, arg->argTTName, arg->argVarName);
else
{