INN commit: trunk/storage/timehash (timehash.c timehash.h)

INN Commit rra at isc.org
Sat Sep 5 13:01:23 UTC 2009


    Date: Saturday, September 5, 2009 @ 06:01:22
  Author: iulius
Revision: 8602

Remove trailing spaces.

Modified:
  trunk/storage/timehash/timehash.c
  trunk/storage/timehash/timehash.h

------------+
 timehash.c |   20 ++++++++++----------
 timehash.h |    2 +-
 2 files changed, 11 insertions(+), 11 deletions(-)

Modified: timehash.c
===================================================================
--- timehash.c	2009-09-05 12:59:43 UTC (rev 8601)
+++ timehash.c	2009-09-05 13:01:22 UTC (rev 8602)
@@ -27,7 +27,7 @@
     int                 len;      /* Length of the file */
     DIR                 *top;     /* Open handle on the top level directory */
     DIR                 *sec;     /* Open handle on the 2nd level directory */
-    DIR			*ter;     /* Open handle on the third level directory */
+    DIR                 *ter;     /* Open handle on the third level directory */
     DIR                 *artdir;  /* Open handle on the article directory */
     struct dirent       *topde;   /* dirent entry for the last entry retrieved in top */
     struct dirent       *secde;   /* dirent entry for the last entry retrieved in sec */
@@ -49,7 +49,7 @@
      * "yyyy" the hexadecimal sequence number seqnum. */
     if (oldtoken == (TOKEN *)NULL)
 	memset(&token, '\0', sizeof(token));
-    else 
+    else
 	memcpy(&token, oldtoken, sizeof(token));
     token.type = TOKEN_TIMEHASH;
     token.class = class;
@@ -73,7 +73,7 @@
 static char *MakePath(time_t now, int seqnum, const STORAGECLASS class) {
     char *path;
     size_t length;
-    
+
     /* innconf->patharticles + '/time-nn/bb/cc/yyyy-aadd'
      * where "nn" is the hexadecimal value of the storage class,
      * "aabbccdd" the arrival time in hexadecimal,
@@ -225,7 +225,7 @@
 	free(art);
 	return NULL;
     }
-    
+
     private = xmalloc(sizeof(PRIV_TIMEHASH));
     art->private = (void *)private;
     private->len = sb.st_size;
@@ -261,13 +261,13 @@
     private->topde = NULL;
     private->secde = NULL;
     private->terde = NULL;
-    
+
     if (amount == RETR_ALL) {
 	art->data = private->base;
 	art->len = private->len;
 	return art;
     }
-    
+
     if ((p = wire_findbody(private->base, private->len)) == NULL) {
 	SMseterror(SMERR_NOBODY, NULL);
 	if (innconf->articlemmap)
@@ -308,7 +308,7 @@
     char                *path;
     ARTHANDLE           *art;
     static TOKEN	ret_token;
-    
+
     if (token.type != TOKEN_TIMEHASH) {
 	SMseterror(SMERR_INTERNAL, NULL);
 	return NULL;
@@ -330,7 +330,7 @@
 
     if (!article)
 	return;
-    
+
     if (article->private) {
 	private = (PRIV_TIMEHASH *)article->private;
 	if (innconf->articlemmap)
@@ -369,7 +369,7 @@
 
 static struct dirent *FindDir(DIR *dir, FINDTYPE type) {
     struct dirent       *de;
-    
+
     while ((de = readdir(dir)) != NULL) {
         if (type == FIND_TOPDIR)
 	    if ((strlen(de->d_name) == 7) &&
@@ -537,7 +537,7 @@
     time_t now;
     int seqnum;
     char *path;
-    
+
     BreakToken(token, &now, &seqnum);
     path = MakePath(now, seqnum, token.class);
     fprintf(file, "%s\n", path);

Modified: timehash.h
===================================================================
--- timehash.h	2009-09-05 12:59:43 UTC (rev 8601)
+++ timehash.h	2009-09-05 13:01:22 UTC (rev 8602)
@@ -1,6 +1,6 @@
 /*  $Id$
 **
-**  timehash based storing method header
+**  Storage manager module header for timehash method.
 */
 
 #ifndef __TIMEHASH_H__




More information about the inn-committers mailing list