finale: Tidy header includes

Since we adopted libroken, we get a lot of header includes automatically
from roken.h. Use these, instead of including lots of things multiple
times.

Also, tidy up translate_et_nt.c by removing the AIX specific code which
will never be built, as this file is only compiled on Windows!

Change-Id: Iec7a811f02eaf1a2ad573bbadc30d782426231d0
Reviewed-on: http://gerrit.openafs.org/4327
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Simon Wilkinson 2011-03-24 20:58:46 +00:00 committed by Jeffrey Altman
parent 5a94101897
commit 4e6aff0bcb
2 changed files with 2 additions and 23 deletions

View File

@ -10,6 +10,7 @@
#include <afsconfig.h>
#include <afs/param.h>
#include <roken.h>
#include <afs/com_err.h>
#include <rx/rxkad.h>
@ -21,10 +22,6 @@
#include <afs/bnode.h>
#include <afs/volser.h>
#include <ubik.h>
#ifdef AFS_AIX32_ENV
#include <signal.h>
#endif
#define ERRCODE_RANGE 8 /* from error_table.h */

View File

@ -9,38 +9,20 @@
#include <afsconfig.h>
#include <afs/param.h>
#include <afs/stds.h>
#include <roken.h>
#include <afs/stds.h>
#include <stdio.h>
#include <afs/afs_Admin.h>
#include <afs/afs_utilAdmin.h>
#include <afs/afs_clientAdmin.h>
int
main(int argc, char **argv)
{
int i;
afs_status_t status;
#ifdef AFS_AIX32_ENV
/*
* The following signal action for AIX is necessary so that in case of a
* crash (i.e. core is generated) we can include the user's data section
* in the core dump. Unfortunately, by default, only a partial core is
* generated which, in many cases, isn't too useful.
*/
struct sigaction nsa;
sigemptyset(&nsa.sa_mask);
nsa.sa_handler = SIG_DFL;
nsa.sa_flags = SA_FULLDUMP;
sigaction(SIGSEGV, &nsa, NULL);
#endif
if (argc < 2) {
fprintf(stderr, "Usage is: %s [<code>]+\n", argv[0]);
exit(1);