]> git.lizzy.rs Git - dragonnet.git/commitdiff
Fix compilation error introduced by last commit
authorElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 22 Jan 2022 17:57:02 +0000 (18:57 +0100)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Sat, 22 Jan 2022 17:57:02 +0000 (18:57 +0100)
typegen/main.c

index ed47820eb223c3967201dca7e2854aa21e41310c..236d2bc041c4ef94b1ee8ba72b6b654ab028a918 100644 (file)
@@ -554,8 +554,8 @@ int main(__attribute((unused)) int argc, __attribute((unused)) char **argv)
        fprintf(c_fp, "#include <stdlib.h>\n");
        fprintf(c_fp, "#include <string.h>\n");
        fprintf(c_fp, "#include <zlib.h>\n\n");
-       fprintf(h_fp, "#define htobe8(x) (x)\n");
-       fprintf(h_fp, "#define be8toh(x) (x)\n\n");
+       fprintf(c_fp, "#define htobe8(x) (x)\n");
+       fprintf(c_fp, "#define be8toh(x) (x)\n\n");
        fprintf(c_fp, "#include \"dnet-types.h\"\n\n");
 
        FILE *h_fp = fopen("dnet-types.h", "w");