From: Frédéric Marchal Date: Mon, 12 Jul 2010 07:13:41 +0000 (+0000) Subject: Remove the distinct printf for the alpha architecture X-Git-Tag: v2.3.1~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c20b1fe7b921d81bcdcaffa985cd2fc5d9b07d28;p=thirdparty%2Fsarg.git Remove the distinct printf for the alpha architecture --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d36772..d91b227 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,9 +1,9 @@ CMAKE_MINIMUM_REQUIRED (VERSION 2.6) PROJECT(sarg C) SET(sarg_VERSION 2) -SET(sarg_REVISION "3-pre5") +SET(sarg_REVISION "3.1-pre1") SET(sarg_BUILD "") -SET(sarg_BUILDDATE "Jun-10-2010") +SET(sarg_BUILDDATE "Jul-12-2010") INCLUDE(AddFileDependencies) INCLUDE(CheckIncludeFile) diff --git a/ChangeLog b/ChangeLog index 6ad69d3..67f0c05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,9 @@ SARG ChangeLog -Jun-10-2009 Version 2.3-pre5 +Jul-12-2010 Version 2.3.1 + - Remove the distinct printf for the alpha architecture as it doesn't work anymore and is not necessary anyway. + +Jun-10-2010 Version 2.3 - LDAP usertab added. Now you can have your users in a LDAP Server. Use these tags in sarg.conf: LDAPHost, LDAPPort, LDAPBindDN, LDAPBindPW, diff --git a/configure.in b/configure.in index 2dd1194..7fe0b49 100644 --- a/configure.in +++ b/configure.in @@ -1,5 +1,5 @@ dnl Process this file with autoconf to produce a configure script. -AC_INIT([sarg],[2.3-pre5]) +AC_INIT([sarg],[2.3.1]) AC_CONFIG_SRCDIR([log.c]) AC_CONFIG_AUX_DIR(cfgaux) diff --git a/email.c b/email.c index 6e54850..63a77f3 100644 --- a/email.c +++ b/email.c @@ -80,8 +80,6 @@ int geramail(const char *dirname, int debug, const char *outdir, const char *ema if (olduser[0] != '\0') { #if defined(__FreeBSD__) fprintf(fp_top2,"%s\t%qu\t%qu\t%qu\n",olduser,tnbytes,tnacc,tnelap); -#elif defined(__alpha) || __ALPHA - fprintf(fp_top2,"%s\t%ld\t%ld\t%ld\n",olduser,tnbytes,tnacc,tnelap); #else fprintf(fp_top2,"%s\t%"PRIu64"\t%"PRIu64"\t%"PRIu64"\n",olduser,(uint64_t)tnbytes,(uint64_t)tnacc,(uint64_t)tnelap); #endif @@ -103,8 +101,6 @@ int geramail(const char *dirname, int debug, const char *outdir, const char *ema if (olduser[0] != '\0') { #if defined(__FreeBSD__) fprintf(fp_top2,"%s\t%qu\t%qu\t%qu\n",olduser,tnbytes,tnacc,tnelap); -#elif defined(__alpha) || __ALPHA - fprintf(fp_top2,"%s\t%ld\t%ld\t%ld\n",olduser,tnbytes,tnacc,tnelap); #else fprintf(fp_top2,"%s\t%"PRIu64"\t%"PRIu64"\t%"PRIu64"\n",olduser,(uint64_t)tnbytes,(uint64_t)tnacc,(uint64_t)tnelap); #endif @@ -132,8 +128,6 @@ int geramail(const char *dirname, int debug, const char *outdir, const char *ema } #if defined(__FreeBSD__) fprintf(fp_top1,"TOTAL\t%qu\t%qu\t%qu\n",ttnbytes,ttnacc,ttnelap); -#elif defined(__alpha) || __ALPHA - fprintf(fp_top1,"TOTAL\t%ld\t%ld\t%ld\n",ttnbytes,ttnacc,ttnelap); #else fprintf(fp_top1,"TOTAL\t%"PRIu64"\t%"PRIu64"\t%"PRIu64"\n",(uint64_t)ttnbytes,(uint64_t)ttnacc,(uint64_t)ttnelap); #endif @@ -208,16 +202,12 @@ int geramail(const char *dirname, int debug, const char *outdir, const char *ema fputs("------- -------------------- -------- --------------- ------- ---------- ---------- -------\n",fp_top3); #if defined(__FreeBSD__) fprintf(fp_top3,"%-7s %20s %8qu %15s %8s %9s %10qu\n",_("TOTAL")," ",ttnacc,fixnum(ttnbytes,1)," ",buildtime(ttnelap),ttnelap); -#elif defined(__alpha) || __ALPHA - fprintf(fp_top3,"%-7s %20s %8ld %15s %8s %9s %10ld\n",_("TOTAL")," ",ttnacc,fixnum(ttnbytes,1)," ",buildtime(ttnelap),ttnelap); #else fprintf(fp_top3,"%-7s %20s %8"PRIu64" %15s %8s %9s %10"PRIu64"\n",_("TOTAL")," ",(uint64_t)ttnacc,fixnum(ttnbytes,1)," ",buildtime(ttnelap),(uint64_t)ttnelap); #endif } else { #if defined(__FreeBSD__) fprintf(fp_top3,"%7d %20s %8lld %15s %3.2lf%% %10s %10qu %3.2lf%%\n",posicao,user,nacc,fixnum(nbytes,1),perc,buildtime(elap),elap,perc2); -#elif defined(__alpha) || __ALPHA - fprintf(fp_top3,"%7d %20s %8lld %15s %3.2lf%% %10s %10ld %3.2lf%%\n",posicao,user,nacc,fixnum(nbytes,1),perc,buildtime(elap),elap,perc2); #else fprintf(fp_top3,"%7d %20s %8"PRIu64" %15s %3.2lf%% %10s %10"PRIu64" %3.2lf%%\n",posicao,user,(uint64_t)nacc,fixnum(nbytes,1),perc,buildtime(elap),(uint64_t)elap,perc2); #endif @@ -238,8 +228,6 @@ int geramail(const char *dirname, int debug, const char *outdir, const char *ema strip_latin(strip1); #if defined(__FreeBSD__) fprintf(fp_top3,"%-7s %20s %8qu %15s %8s %9s %10qu\n",strip1," ",avgacc,fixnum(tnbytes,1)," ",buildtime(avgelap),avgelap); -#elif defined(__alpha) || __ALPHA - fprintf(fp_top3,"%-7s %20s %8ld %15s %8s %9s %10ld\n",strip1," ",avgacc,fixnum(tnbytes,1)," ",buildtime(avgelap),avgelap); #else fprintf(fp_top3,"%-7s %20s %8"PRIu64" %15s %8s %9s %10"PRIu64"\n",strip1," ",(uint64_t)avgacc,fixnum(tnbytes,1)," ",buildtime(avgelap),(uint64_t)avgelap); #endif diff --git a/include/info.h b/include/info.h index 0556a87..744af77 100755 --- a/include/info.h +++ b/include/info.h @@ -1,3 +1,3 @@ -#define VERSION PACKAGE_VERSION" Jun-10-2010" +#define VERSION PACKAGE_VERSION" Jul-12-2010" #define PGM PACKAGE_NAME #define URL "http://sarg.sourceforge.net"