diff options
author | Jim Jagielski <jim@apache.org> | 2011-09-23 13:39:32 +0000 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2011-09-23 13:39:32 +0000 |
commit | 427c85bd2353796cbd8253854dd2fb2ccfbf8bdc (patch) | |
tree | f1decb7874c49c67162ebdbf1db997a92e0b5834 /support/rotatelogs.c | |
parent | 103f776c25b7fdd51da4f98643b8dcdb09efdce6 (diff) | |
download | httpd-427c85bd2353796cbd8253854dd2fb2ccfbf8bdc.tar.gz |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/rotatelogs.c')
-rw-r--r-- | support/rotatelogs.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/support/rotatelogs.c b/support/rotatelogs.c index a00bb635fa..c026a07015 100644 --- a/support/rotatelogs.c +++ b/support/rotatelogs.c @@ -288,7 +288,7 @@ static void post_rotate(apr_pool_t *pool, struct logfile *newlog, exit(2); } } - + if (!config->postrotate_prog) { /* Nothing more to do. */ return; @@ -358,7 +358,7 @@ static void doRotate(rotate_config_t *config, rotate_status_t *status) int tLogStart; apr_status_t rv; struct logfile newlog; - + status->rotateReason = ROTATE_NONE; if (config->tRotation) { @@ -427,10 +427,10 @@ static void doRotate(rotate_config_t *config, rotate_status_t *status) fprintf(stderr, "Could not open log file '%s' (%s)\n", newlog.name, error); exit(2); } - + /* Throw away new state; it isn't going to be used. */ apr_pool_destroy(newlog.pool); - + /* Try to keep this error message constant length * in case it occurs several times. */ apr_snprintf(status->errbuf, sizeof status->errbuf, @@ -438,17 +438,17 @@ static void doRotate(rotate_config_t *config, rotate_status_t *status) "new log file, %10d messages lost: %-25.25s\n", status->nMessCount, error); nWrite = strlen(status->errbuf); - + if (apr_file_trunc(status->current.fd, 0) != APR_SUCCESS) { fprintf(stderr, "Error truncating the file %s\n", status->current.name); exit(2); - } + } if (apr_file_write(status->current.fd, status->errbuf, &nWrite) != APR_SUCCESS) { fprintf(stderr, "Error writing to the file %s\n", status->current.name); exit(2); } } - + status->nMessCount = 0; } |