Unix: Merge aklog with aklog_main

Historically, aklog was split into aklog.c (which just contained a
wrapper) and aklog_main.c, which did all of the hard work. Now
that we've purged all of the Windows code from aklog_main.c, we
can merge them both into the same file, so do so.

FIXES 20884

Change-Id: Ifdcb33f4eb2b26703c833056882d95f7f0f654b1
Reviewed-on: http://gerrit.openafs.org/1036
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Simon Wilkinson 2009-12-29 17:03:50 +00:00 committed by Derrick Brashear
parent 6ec1846164
commit da8c26533d
3 changed files with 3 additions and 20 deletions

View File

@ -18,8 +18,8 @@ AFSLIBS = ${TOP_LIBDIR}/libprot.a ${TOP_LIBDIR}/libauth.a \
${TOP_LIBDIR}/libdes.a ${TOP_LIBDIR}/libcom_err.a \
${TOP_LIBDIR}/libcmd.a ${TOP_LIBDIR}/libafsutil.a
SRCS= aklog.c aklog_main.c krb_util.c linked_list.c
OBJS= aklog.o aklog_main.o krb_util.o linked_list.o
SRCS= aklog_main.c krb_util.c linked_list.c
OBJS= aklog_main.o krb_util.o linked_list.o
all: aklog asetkey klog

View File

@ -1,17 +0,0 @@
/*
* $Id$
*
* Copyright 1990,1991 by the Massachusetts Institute of Technology
* For distribution and copying rights, see the file "mit-copyright.h"
*/
#include <afs/stds.h>
#include "aklog.h"
int
main(int argc, char *argv[])
{
aklog(argc, argv);
exit(0);
}

View File

@ -1245,7 +1245,7 @@ static void usage(void)
exit(AKLOG_USAGE);
}
void aklog(int argc, char *argv[])
int main(int argc, char *argv[])
{
krb5_context context;
int status = AKLOG_SUCCESS;