rayzor

diff src/logger.c @ 1:a826bf0fb169

fixed line endings
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 05 Apr 2014 09:05:26 +0300
parents 2a5340a6eee4
children a68dbf80d547
line diff
     1.1 --- a/src/logger.c	Sat Apr 05 08:46:27 2014 +0300
     1.2 +++ b/src/logger.c	Sat Apr 05 09:05:26 2014 +0300
     1.3 @@ -1,23 +1,23 @@
     1.4 -#include <stdio.h>
     1.5 -#include <stdarg.h>
     1.6 -#include "logger.h"
     1.7 -
     1.8 -#define LOGFNAME	"rayzor.log"
     1.9 -
    1.10 -static FILE *logfile;
    1.11 -
    1.12 -void printlog(const char *fmt, ...)
    1.13 -{
    1.14 -	va_list ap;
    1.15 -
    1.16 -	if(!logfile) {
    1.17 -		if(!(logfile = fopen(LOGFNAME, "w"))) {
    1.18 -			return;
    1.19 -		}
    1.20 -		setvbuf(logfile, 0, _IOLBF, 0);
    1.21 -	}
    1.22 -
    1.23 -	va_start(ap, fmt);
    1.24 -	vfprintf(logfile, fmt, ap);
    1.25 -	va_end(ap);
    1.26 -}
    1.27 +#include <stdio.h>
    1.28 +#include <stdarg.h>
    1.29 +#include "logger.h"
    1.30 +
    1.31 +#define LOGFNAME	"rayzor.log"
    1.32 +
    1.33 +static FILE *logfile;
    1.34 +
    1.35 +void printlog(const char *fmt, ...)
    1.36 +{
    1.37 +	va_list ap;
    1.38 +
    1.39 +	if(!logfile) {
    1.40 +		if(!(logfile = fopen(LOGFNAME, "w"))) {
    1.41 +			return;
    1.42 +		}
    1.43 +		setvbuf(logfile, 0, _IOLBF, 0);
    1.44 +	}
    1.45 +
    1.46 +	va_start(ap, fmt);
    1.47 +	vfprintf(logfile, fmt, ap);
    1.48 +	va_end(ap);
    1.49 +}