Changeset 5398:1bdb7a7c3c8f for buffy.c
Legend:
- Unmodified
- Added
- Removed
-
buffy.c
r5011 r5398 49 49 * upon success return 0. If no message found - return -1 */ 50 50 51 int fseek_last_message (FILE * f)51 static int fseek_last_message (FILE * f) 52 52 { 53 53 LOFF_T pos; … … 95 95 96 96 /* Return 1 if the last message is new */ 97 int test_last_status_new (FILE * f)97 static int test_last_status_new (FILE * f) 98 98 { 99 99 HEADER *hdr; … … 115 115 } 116 116 117 int test_new_folder (const char *path)117 static int test_new_folder (const char *path) 118 118 { 119 119 FILE *f; … … 161 161 162 162 if (stat (b->path, &sb) == 0) 163 b->size = ( long) sb.st_size;163 b->size = (off_t) sb.st_size; 164 164 else 165 165 b->size = 0; … … 236 236 { 237 237 /* some systems out there don't have an off_t type */ 238 (*tmp)->size = ( long) sb.st_size;238 (*tmp)->size = (off_t) sb.st_size; 239 239 } 240 240 else … … 359 359 { 360 360 /* some other program has deleted mail from the folder */ 361 tmp->size = ( long) sb.st_size;361 tmp->size = (off_t) sb.st_size; 362 362 } 363 363 if (tmp->newly_created && … … 397 397 } 398 398 else if (option(OPTCHECKMBOXSIZE) && Context && Context->path) 399 tmp->size = ( long) sb.st_size; /* update the size*/399 tmp->size = (off_t) sb.st_size; /* update the size of current folder */ 400 400 401 401 if (!tmp->new)
