]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Fix some compiler warnings
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 30 May 2013 09:30:07 +0000 (11:30 +0200)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 30 May 2013 09:30:07 +0000 (11:30 +0200)
Unused variables.

grepday.c

index 2606f8ef960b25e7da1048d73b402127fd333c15..d415fa49748c3c5866fe94d7571ff9bcbd6447cf 100644 (file)
--- a/grepday.c
+++ b/grepday.c
@@ -290,7 +290,6 @@ static int greport_compute_yaxis(struct PlotStruct *pdata,struct GraphDataStruct
        double symin,symax;
        double range;
        double yscale;
-       double ymag;
 
        if (pdata->ymin<0.) {
                debuga(_("Minimum for Y scale of the graph is out of range: %"PRId64"\n"),(int64_t)pdata->ymin);
@@ -306,7 +305,6 @@ static int greport_compute_yaxis(struct PlotStruct *pdata,struct GraphDataStruct
                case PTG_LinBin:
                        symin=(double)pdata->ymin;
                        symax=(double)pdata->ymax;
-                       ymag=1000.;
                        break;
 
                case PTG_LogBin:
@@ -315,13 +313,11 @@ static int greport_compute_yaxis(struct PlotStruct *pdata,struct GraphDataStruct
                        else
                                symin=0.;
                        symax=log(pdata->ymax);
-                       ymag=1000.;
                        break;
 
                case PTG_Time:
                        symin=(double)pdata->ymin;
                        symax=(double)pdata->ymax;
-                       ymag=1.;
                        break;
 
                default:
@@ -667,7 +663,6 @@ void greport_day(const struct userinfostruct *uinfo)
        FILE *fp_in, *fp_ou;
        char wdirname[MAXLEN];
        char buf[MAXLEN];
-       char colsep;
        int day;
        long long int llday;
        long long int bytes;
@@ -711,7 +706,6 @@ void greport_day(const struct userinfostruct *uinfo)
                        exit(EXIT_FAILURE);
                }
                if ((datetimeby & DATETIME_BYTE)!=0) {
-                       colsep=((datetimeby & DATETIME_ELAP)!=0) ? '\t' : '\0';
                        if (getword_atoll(&bytes,&gwarea,'\t')<0) {
                                debuga(_("Invalid number of bytes in file %s\n"),wdirname);
                                exit(EXIT_FAILURE);