]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Remove trailing spaces
authorFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 26 Aug 2012 15:24:37 +0000 (17:24 +0200)
committerFrédéric Marchal <fmarchal@users.sourceforge.net>
Sun, 26 Aug 2012 15:24:37 +0000 (17:24 +0200)
dichotomic.c
exclude.c
include/readlog.h
readlog_common.c
util.c

index b81129e8d8126aaf0d1c6921cf480f1dee391b42..b58f0ca8c96716f7398de918816c71cc4493308a 100644 (file)
@@ -111,7 +111,7 @@ static int Dichotomic_FindKeyPos(DichotomicObject Obj,const char *key,bool *Foun
        {
                middle=(down+up)/2;
                cmp=strcasecmp(key,Obj->Items[middle].Key);
-               if (!cmp) 
+               if (!cmp)
                {
                        *Found=true;
                        return(middle);
index a4abf772b9a92a80de78625d1c35db3c6a12ab05..0c01054b28679051c68c99032e8b141ac93f4003 100644 (file)
--- a/exclude.c
+++ b/exclude.c
@@ -65,7 +65,7 @@ static char *excludeuser=NULL;
 
 /*!
   Store a IPv4 address to exclude from the reported URL.
-  
+
   \param addr The 4 char of the address.
   \param nbits The number of bits to keep in the prefix.
  */
@@ -93,7 +93,7 @@ static void store_exclude_ip4(unsigned char *addr,int nbits)
 
 /*!
   Store a IPv6 address to exclude from the reported URL.
-  
+
   \param addr The 8 short int of the address.
   \param nbits The number of bits to keep in the prefix.
  */
@@ -120,7 +120,7 @@ static void store_exclude_ip6(unsigned short *addr,int nbits)
 
 /*!
   Store a host name to exclude from the report.
-  
+
   \param url The host name to exclude.
  */
 static void store_exclude_url(const char *url,const char *next)
@@ -177,7 +177,7 @@ static void store_exclude_url(const char *url,const char *next)
 
 /*!
   Read the file listing the host to exclude from the report.
-  
+
   \param hexfile The name of the file.
   \param debug \c True to print debug information.
  */
@@ -230,9 +230,9 @@ void gethexclude(const char *hexfile, int debug)
 
 /*!
   Check if the URL is excluded as per the host exclusion list.
-  
+
   \param url The URL to check.
-  
+
   \retval 1 Keep the URL.
   \retval 0 Exclude the URL.
  */
index 8e18b5bd56d2b905272d8477fa8a81aa1d9a0c82..e286135c35ab4be429e5558291e8280a8650c494 100644 (file)
@@ -14,7 +14,7 @@ enum ReadLogReturnCodeEnum
        RLRC_Unknown,
        //! Error encountered during the parsing of the file.
        RLRC_InternalError,
-       
+
        RLRC_LastRetCode //!< last entry of the list.
 };
 
@@ -31,7 +31,7 @@ struct ReadLogStruct
        char *User;
        /*!
        The URL of the visited site.
-       
+
        The pointer may be NULL if the URL doesn't exists in the log file.
        */
        char *Url;
index b05e4cb10999c9acbe2aee8ec6c7b3d8394f0a19..af853129eae7a594f1a14a52c2faad5ac432dc7c 100644 (file)
@@ -76,7 +76,7 @@ static enum ReadLogReturnCodeEnum Common_ReadEntry(char *Line,struct ReadLogStru
        Entry->User=++Line;
        for (UserLen=0 ; *Line && *Line!=' ' ; UserLen++) Line++;
        if (*Line!=' ' || UserLen==0) return(RLRC_Unknown);
-       
+
        if (squid24) {
                // squid version > 2.4 store the user ID in the first column: skip the second column here
                Begin=++Line;
@@ -103,7 +103,7 @@ static enum ReadLogReturnCodeEnum Common_ReadEntry(char *Line,struct ReadLogStru
        Year=0;
        while (isdigit(*Line)) Year=Year*10+(*Line++-'0');
        if (*Line!=':' || Year<1900 || Year>2200) return(RLRC_Unknown);
-       
+
        // get the time
        ++Line;
        Hour=0;
@@ -121,7 +121,7 @@ static enum ReadLogReturnCodeEnum Common_ReadEntry(char *Line,struct ReadLogStru
        // skip the timezone up to the closing ]
        while (*Line && *Line!=']') Line++;
        if (*Line!=']') return(RLRC_Unknown);
-       
+
        Entry->EntryTime.tm_year=Year-1900;
        Entry->EntryTime.tm_mon=Month;
        Entry->EntryTime.tm_mday=Day;
@@ -135,17 +135,17 @@ static enum ReadLogReturnCodeEnum Common_ReadEntry(char *Line,struct ReadLogStru
        if (*Line!=' ') return(RLRC_Unknown);
        ++Line;
        if (*Line!='\"') return(RLRC_Unknown);
-       
+
        // skip the HTTP function
        Begin=++Line;
        while (isalpha(*Line)) Line++;
        if (*Line!=' ' || Line==Begin) return(RLRC_Unknown);
-       
+
        // get the URL
        Entry->Url=++Line;
        for (UrlLen=0 ; *Line && *Line!=' ' ; UrlLen++) Line++;
        if (*Line!=' ' || UrlLen==0) return(RLRC_Unknown);
-       
+
        // skip the HTTP/...
        ++Line;
        while (*Line && *Line!='\"') Line++;
@@ -157,7 +157,7 @@ static enum ReadLogReturnCodeEnum Common_ReadEntry(char *Line,struct ReadLogStru
        Entry->HttpCode=++Line;
        for (HttpCodeLen=0 ; *Line && *Line!=' ' ; HttpCodeLen++) Line++;
        if (*Line!=' ' || HttpCodeLen==0) return(RLRC_Unknown);
-       
+
        // get the number of transfered bytes.
        Begin=++Line;
        Entry->DataSize=0LL;
@@ -175,7 +175,7 @@ static enum ReadLogReturnCodeEnum Common_ReadEntry(char *Line,struct ReadLogStru
        Entry->HttpCode[HttpCodeLen]='\0';
        Entry->Url[UrlLen]='\0';
        Entry->User[UserLen]='\0';
-       
+
        return(RLRC_NoError);
 }
 
diff --git a/util.c b/util.c
index 2291ca45a07652d779b07d434962130fb2401a11..70cba41cc2e03a8832c44451f173dffdcc979f51 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1197,7 +1197,7 @@ int vrfydir(const struct periodstruct *per1, const char *addr, const char *site,
 /*!
   Copy a string without overflowing the buffer. The copied string
   is properly terminated by an ASCII zero.
-  
+
   \param dest The destination buffer.
   \param src The source buffer.
   \param length The size of the destination buffer. The program is aborted
@@ -1798,7 +1798,7 @@ void output_html_url(FILE *fp_ou,const char *url)
   Write a host name inside an A tag of a HTML file. If the host name starts
   with a star, it is assumed to be an alias that cannot be put inside a link
   so the A tag is not written around the host name.
-  
+
   \param fp_ou The handle of the HTML file.
   \param url The host to display in the HTML file.
   \param maxlen The maximum number of characters to print into the host name.