summaryrefslogtreecommitdiffstats
path: root/eBones/lib/libkrb/log.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>1995-08-25 22:52:32 +0000
committermarkm <markm@FreeBSD.org>1995-08-25 22:52:32 +0000
commita83b802bada404e3b2eccf92c3499966deaad171 (patch)
tree45f2ba147600b7d47d9e9695cf572877c7fa4773 /eBones/lib/libkrb/log.c
parent2d8492d7c86b21502ee9277e20ef1e6e931b7c44 (diff)
downloadFreeBSD-src-a83b802bada404e3b2eccf92c3499966deaad171.zip
FreeBSD-src-a83b802bada404e3b2eccf92c3499966deaad171.tar.gz
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
Diffstat (limited to 'eBones/lib/libkrb/log.c')
-rw-r--r--eBones/lib/libkrb/log.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/eBones/lib/libkrb/log.c b/eBones/lib/libkrb/log.c
index 42fccfb..aea6ab9 100644
--- a/eBones/lib/libkrb/log.c
+++ b/eBones/lib/libkrb/log.c
@@ -5,13 +5,15 @@
* <Copyright.MIT>.
*
* from: log.c,v 4.7 88/12/01 14:15:14 jtkohl Exp $
- * $Id: log.c,v 1.2 1994/07/19 19:25:53 g89r4222 Exp $
+ * $Id: log.c,v 1.3 1995/07/18 16:39:09 mark Exp $
*/
+#if 0
#ifndef lint
static char *rcsid =
-"$Id: log.c,v 1.2 1994/07/19 19:25:53 g89r4222 Exp $";
+"$Id: log.c,v 1.3 1995/07/18 16:39:09 mark Exp $";
#endif /* lint */
+#endif
#include <sys/time.h>
#include <stdio.h>
@@ -42,18 +44,12 @@ static is_open;
* The return value is undefined.
*/
-__BEGIN_DECLS
-char *month_sname __P((int));
-__END_DECLS
-
-
/*VARARGS1 */
-void log(format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0)
- char *format;
- int a1,a2,a3,a4,a5,a6,a7,a8,a9,a0;
+void log(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();
- long time(),now;
+ FILE *logfile;
+ long now;
struct tm *tm;
if ((logfile = fopen(log_name,"a")) == NULL)
@@ -77,8 +73,7 @@ void log(format,a1,a2,a3,a4,a5,a6,a7,a8,a9,a0)
* the logfile defaults to KRBLOG, defined in "krb.h".
*/
-set_logfile(filename)
- char *filename;
+void set_logfile(char *filename)
{
log_name = filename;
is_open = 0;
@@ -91,9 +86,7 @@ set_logfile(filename)
* on success.
*/
-new_log(t,string)
- long t;
- char *string;
+int new_log(long t, char *string)
{
static FILE *logfile;
OpenPOWER on IntegriCloud