INN commit: trunk/storage/trash (trash.c trash.h)
INN Commit
rra at isc.org
Sat Sep 5 13:04:38 UTC 2009
Date: Saturday, September 5, 2009 @ 06:04:38
Author: iulius
Revision: 8603
Convert tabs to spaces.
Modified:
trunk/storage/trash/trash.c
trunk/storage/trash/trash.h
---------+
trash.c | 18 +++++++++---------
trash.h | 2 +-
2 files changed, 10 insertions(+), 10 deletions(-)
Modified: trash.c
===================================================================
--- trash.c 2009-09-05 13:01:22 UTC (rev 8602)
+++ trash.c 2009-09-05 13:04:38 UTC (rev 8603)
@@ -1,6 +1,6 @@
/* $Id$
**
-** Trashing articles method
+** Storage manager module for trash method.
*/
#include "config.h"
#include "clibrary.h"
@@ -13,8 +13,8 @@
trash_init(SMATTRIBUTE *attr)
{
if (attr == NULL) {
- SMseterror(SMERR_INTERNAL, "attr is NULL");
- return false;
+ SMseterror(SMERR_INTERNAL, "attr is NULL");
+ return false;
}
attr->selfexpire = true;
attr->expensivestat = false;
@@ -27,10 +27,10 @@
TOKEN token;
if (article.token == (TOKEN *)NULL)
- memset(&token, '\0', sizeof(token));
+ memset(&token, '\0', sizeof(token));
else {
- memcpy(&token, article.token, sizeof(token));
- memset(&token.token, '\0', STORAGE_TOKEN_LENGTH);
+ memcpy(&token, article.token, sizeof(token));
+ memset(&token.token, '\0', STORAGE_TOKEN_LENGTH);
}
token.type = TOKEN_TRASH;
token.class = class;
@@ -41,8 +41,8 @@
trash_retrieve(const TOKEN token, const RETRTYPE amount UNUSED)
{
if (token.type != TOKEN_TRASH) {
- SMseterror(SMERR_INTERNAL, NULL);
- return (ARTHANDLE *)NULL;
+ SMseterror(SMERR_INTERNAL, NULL);
+ return (ARTHANDLE *)NULL;
}
SMseterror(SMERR_NOENT, NULL);
return (ARTHANDLE *)NULL;
@@ -66,7 +66,7 @@
switch (type) {
case SMARTNGNUM:
default:
- return false;
+ return false;
}
}
Modified: trash.h
===================================================================
--- trash.h 2009-09-05 13:01:22 UTC (rev 8602)
+++ trash.h 2009-09-05 13:04:38 UTC (rev 8603)
@@ -1,6 +1,6 @@
/* $Id$
**
-** trashing articles method header
+** Storage manager module header for trash method.
*/
#ifndef __TRASH_H__
More information about the inn-committers
mailing list