Mercurial > noffle
comparison src/content.c @ 185:fed1334d766b noffle
[svn] * src/client.c: Change variable only used on constant to 'const'.
* src/filter.c: Add a couple of 'return's after ASSERT() to remove
compiler warnings about functions needing returns.
* NEWS,TODO,configure,configure.in,noffle.conf.example,docs/NOTES,
docs/noffle.conf.5,src/client.c,src/configfile.c,src/content.c,
src/control.c,src/database.c,src/fetch.c,src/fetchlist.c,src/filter.c,
src/group.c,src/lock.c,src/log.c,src/log.h,src/noffle.c,src/outgoing.c,
src/post.c,src/protocol.c,src/request.c,src/server.c,src/util.c:
Debug logging is always compiled and selected via noffle.conf. All debug
logs are classified as all, none, config, control, expire, fetch,
filter, newsbase, noffle, post, protocol, requests and server.
author | bears |
---|---|
date | Sun, 05 Aug 2001 09:24:22 +0100 |
parents | 7ba337dafb2c |
children | f1bacee93ca6 |
comparison
equal
deleted
inserted
replaced
184:9854ea5f295f | 185:fed1334d766b |
---|---|
1 /* | 1 /* |
2 content.c | 2 content.c |
3 | 3 |
4 $Id: content.c 260 2001-02-25 23:29:50Z bears $ | 4 $Id: content.c 300 2001-08-05 08:24:22Z bears $ |
5 */ | 5 */ |
6 | 6 |
7 #if HAVE_CONFIG_H | 7 #if HAVE_CONFIG_H |
8 #include <config.h> | 8 #include <config.h> |
9 #endif | 9 #endif |
137 list */ | 137 list */ |
138 snprintf( cont.file, MAXCHAR, "%s/overview/%s", Cfg_spoolDir(), name ); | 138 snprintf( cont.file, MAXCHAR, "%s/overview/%s", Cfg_spoolDir(), name ); |
139 f = fopen( cont.file, "r" ); | 139 f = fopen( cont.file, "r" ); |
140 if ( ! f ) | 140 if ( ! f ) |
141 { | 141 { |
142 Log_dbg( "No group overview file: %s", cont.file ); | 142 Log_dbg( LOG_DBG_NEWSBASE, "No group overview file: %s", cont.file ); |
143 setupEmpty( name ); | 143 setupEmpty( name ); |
144 return; | 144 return; |
145 } | 145 } |
146 Log_dbg( "Reading %s", cont.file ); | 146 Log_dbg( LOG_DBG_NEWSBASE, "Reading %s", cont.file ); |
147 while ( fgets( line, MAXCHAR, f ) ) | 147 while ( fgets( line, MAXCHAR, f ) ) |
148 { | 148 { |
149 if ( ! ( ov = Ov_read( line ) ) ) | 149 if ( ! ( ov = Ov_read( line ) ) ) |
150 { | 150 { |
151 Log_err( "Overview corrupted in %s: %s", name, line ); | 151 Log_err( "Overview corrupted in %s: %s", name, line ); |
197 if ( ! ( f = fopen( cont.file, "w" ) ) ) | 197 if ( ! ( f = fopen( cont.file, "w" ) ) ) |
198 { | 198 { |
199 Log_err( "Could not open %s for writing", cont.file ); | 199 Log_err( "Could not open %s for writing", cont.file ); |
200 return; | 200 return; |
201 } | 201 } |
202 Log_dbg( "Writing %s (%lu)", cont.file, cont.size ); | 202 Log_dbg( LOG_DBG_NEWSBASE, "Writing %s (%lu)", cont.file, cont.size ); |
203 anythingWritten = FALSE; | 203 anythingWritten = FALSE; |
204 cont.first = -1; | 204 cont.first = -1; |
205 for ( i = 0; i < cont.size; ++i ) | 205 for ( i = 0; i < cont.size; ++i ) |
206 { | 206 { |
207 ov = cont.elem[ i ]; | 207 ov = cont.elem[ i ]; |