Mercurial > noffle
comparison src/util.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 | 94f2e5607772 |
children | 7d1f26e7c728 |
comparison
equal
deleted
inserted
replaced
184:9854ea5f295f | 185:fed1334d766b |
---|---|
1 /* | 1 /* |
2 util.c | 2 util.c |
3 | 3 |
4 $Id: util.c 248 2001-01-25 11:00:03Z bears $ | 4 $Id: util.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 |
32 #include "wildmat.h" | 32 #include "wildmat.h" |
33 #include "portable.h" | 33 #include "portable.h" |
34 | 34 |
35 #if defined(UTIL_TEST) | 35 #if defined(UTIL_TEST) |
36 #define Log_err printf | 36 #define Log_err printf |
37 #define Log_dbg printf | |
38 #endif | 37 #endif |
39 | 38 |
40 static const char * | 39 static const char * |
41 nextWhiteSpace( const char *p ) | 40 nextWhiteSpace( const char *p ) |
42 { | 41 { |
105 if ( str == p ) | 104 if ( str == p ) |
106 return FALSE; | 105 return FALSE; |
107 --p; | 106 --p; |
108 if ( *p != '\n' ) | 107 if ( *p != '\n' ) |
109 { | 108 { |
110 Log_dbg( "Utl_ungetLn: not at beginning of line" ); | 109 Log_err( "Utl_ungetLn: not at beginning of line" ); |
111 return NULL; | 110 return NULL; |
112 } | 111 } |
113 --p; | 112 --p; |
114 while ( TRUE ) | 113 while ( TRUE ) |
115 { | 114 { |