Ethereal-dev: [Ethereal-dev] Getting rid of sys/types.h and netinet/in.h (scripts)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Joerg Mayer <jmayer@xxxxxxxxx>
Date: Mon, 15 Jul 2002 14:52:51 +0200
Hello,

the attached scripts will (hopefully) change all occurrences of the
types in sys/types.h (u_XXX) into the ones provided by glib.h (guXXX).
It will also replace the usage of ntohX and htonX from netinet/in.h into
their glib equivalents (g_ntohX and g_htonX).
Because netinet/in.h and sys/types.h are not needed any more, their usage
in .h, .c, .pl and .py files is removed.
In order for this to work, the patch with the small cleanups I submitted
yesterday has to be applied first. Usage: put the scripts into the parent
of the ethereal dir and fix the path to ethereal in the .sh file. Run it.
In case of problems, please let me know otherwise, please apply :-)
Once this is done, I'll fix the remaining files (configure stuff and
documentation).

 ciao
       Jörg

--
Joerg Mayer                                          <jmayer@xxxxxxxxx>
I found out that "pro" means "instead of" (as in proconsul). Now I know
what proactive means.

Attachment: cleanup-types.sh
Description: Bourne shell script

Attachment: remove-sys-types.pl
Description: Perl program