aboutsummaryrefslogtreecommitdiff
path: root/eBones/krb/klog.c
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>1995-08-25 22:52:32 +0000
committerMark Murray <markm@FreeBSD.org>1995-08-25 22:52:32 +0000
commitb1ebdd50cb3946c24106ea3de11ce2d331e4c987 (patch)
tree45f2ba147600b7d47d9e9695cf572877c7fa4773 /eBones/krb/klog.c
parentd1171f689903aa9f6acf8b79894d0bb845ee0983 (diff)
Start the eBones cleanup ball rolling.
These are the start of a lot of work to clean up the FreeBSD eBones code. these changes include, but are not limited to: - Create prototypes for all the library routines - Make all the libraries compile clean with -Wall set - Fix numerous small bugs shown up in the above process - Prepare the code for libdes's removal to secure/ - add register, registerd and make_keypair to the make Lots more will follow in days to come. OK'ed by: rgrimes
Notes
Notes: svn path=/head/; revision=10277
Diffstat (limited to 'eBones/krb/klog.c')
-rw-r--r--eBones/krb/klog.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/eBones/krb/klog.c b/eBones/krb/klog.c
index b530e8b65c79..97d52c76594f 100644
--- a/eBones/krb/klog.c
+++ b/eBones/krb/klog.c
@@ -5,13 +5,15 @@
* <Copyright.MIT>.
*
* from: klog.c,v 4.6 88/12/01 14:06:05 jtkohl Exp $
- * $Id: klog.c,v 1.2 1994/07/19 19:25:37 g89r4222 Exp $
+ * $Id: klog.c,v 1.3 1995/07/18 16:38:52 mark Exp $
*/
+#if 0
#ifndef lint
static char *rcsid =
-"$Id: klog.c,v 1.2 1994/07/19 19:25:37 g89r4222 Exp $";
+"$Id: klog.c,v 1.3 1995/07/18 16:38:52 mark Exp $";
#endif /* lint */
+#endif
#include <sys/time.h>
#include <stdio.h>
@@ -48,14 +50,11 @@ static char logtxt[1000];
* text string "logtxt".
*/
-char * klog(type,format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0)
- int type;
- char *format;
- int a1,a2,a3,a4,a5,a6,a7,a8,a9,a0;
+char *klog(int type, char *format, int a1, int a2, int a3, int a4, int a5,
+ int a6, int a7, int a8, int a9, int a0)
{
- FILE *logfile, *fopen();
+ FILE *logfile;
long time(),now;
- char *month_sname();
struct tm *tm;
static int logtype_array[NLOGTYPE] = {0,0};
static int array_initialized;
@@ -100,8 +99,7 @@ char * klog(type,format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0)
* the logfile defaults to KRBLOG, defined in "krb.h".
*/
-kset_logfile(filename)
- char *filename;
+void kset_logfile(char *filename)
{
log_name = filename;
is_open = 0;