comparison src/content.c @ 96:988cacc01470 noffle

[svn] Preserve group last number if last article(s) cancelled
author bears
date Fri, 19 May 2000 16:18:05 +0100
parents 22b3e3dfc8c2
children 7ba337dafb2c
comparison
equal deleted inserted replaced
95:c3312022e657 96:988cacc01470
1 /* 1 /*
2 content.c 2 content.c
3 3
4 $Id: content.c 81 2000-05-13 15:38:39Z bears $ 4 $Id: content.c 115 2000-05-19 15:18:05Z 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
162 } 162 }
163 fclose( f ); 163 fclose( f );
164 164
165 if ( cont.first == 0 ) 165 if ( cont.first == 0 )
166 setupEmpty( name ); /* Corrupt overview file recovery */ 166 setupEmpty( name ); /* Corrupt overview file recovery */
167 else
168 {
169 int grpLast;
170
171 /*
172 Check for end article(s) being cancelled. Need to ensure we
173 don't re-use and article number.
174 */
175 grpLast = Grp_last( name );
176 if ( cont.last < grpLast )
177 extendCont( grpLast - cont.first + 1 );
178 }
167 } 179 }
168 180
169 void 181 void
170 Cont_write( void ) 182 Cont_write( void )
171 { 183 {