Mercurial > noffle
comparison src/group.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 | 3c71e28c8eef |
children | 28488e0e3630 |
comparison
equal
deleted
inserted
replaced
184:9854ea5f295f | 185:fed1334d766b |
---|---|
5 the groups we know of. One database record is cached in the global struct | 5 the groups we know of. One database record is cached in the global struct |
6 grp. Group information is transfered between the grp and the database by | 6 grp. Group information is transfered between the grp and the database by |
7 loadGrp() and saveGrp(). This is done transparently. Access to the groups | 7 loadGrp() and saveGrp(). This is done transparently. Access to the groups |
8 database is done by group name, by the functions defined in group.h. | 8 database is done by group name, by the functions defined in group.h. |
9 | 9 |
10 $Id: group.c 183 2000-07-25 12:14:54Z bears $ | 10 $Id: group.c 300 2001-08-05 08:24:22Z bears $ |
11 */ | 11 */ |
12 | 12 |
13 #if HAVE_CONFIG_H | 13 #if HAVE_CONFIG_H |
14 #include <config.h> | 14 #include <config.h> |
15 #endif | 15 #endif |
74 if ( ! ( grp.dbf = gdbm_open( name, 512, flags, 0644, NULL ) ) ) | 74 if ( ! ( grp.dbf = gdbm_open( name, 512, flags, 0644, NULL ) ) ) |
75 { | 75 { |
76 Log_err( "Error opening %s for r/w (%s)", errMsg() ); | 76 Log_err( "Error opening %s for r/w (%s)", errMsg() ); |
77 return FALSE; | 77 return FALSE; |
78 } | 78 } |
79 Log_dbg( "%s opened for r/w", name ); | 79 Log_dbg( LOG_DBG_NEWSBASE, "%s opened for r/w", name ); |
80 return TRUE; | 80 return TRUE; |
81 } | 81 } |
82 | 82 |
83 void | 83 void |
84 Grp_close( void ) | 84 Grp_close( void ) |
85 { | 85 { |
86 ASSERT( grp.dbf ); | 86 ASSERT( grp.dbf ); |
87 Log_dbg( "Closing groupinfo" ); | 87 Log_dbg( LOG_DBG_NEWSBASE, "Closing groupinfo" ); |
88 gdbm_close( grp.dbf ); | 88 gdbm_close( grp.dbf ); |
89 grp.dbf = NULL; | 89 grp.dbf = NULL; |
90 Utl_cpyStr( grp.name, "" ); | 90 Utl_cpyStr( grp.name, "" ); |
91 } | 91 } |
92 | 92 |