const char *);
static /*@dependent@*/ /*@null@*/struct commonio_entry *next_entry_by_name (
struct commonio_db *,
- struct commonio_entry *pos,
+ /*@null@*/struct commonio_entry *pos,
const char *);
static int lock_count = 0;
return 0;
}
- db->head = db->tail = db->cursor = NULL;
+ db->head = db->tail = NULL;
+ db->cursor = NULL;
db->changed = false;
db->fp = fopen (db->filename, db->readonly ? "r" : "r+");
/*
* Head, tail, current position in linked list.
*/
- /*@owned@*/ /*@null@*/struct commonio_entry *head, *tail, *cursor;
+ /*@owned@*/ /*@null@*/struct commonio_entry *head, *tail;
+ /*@dependent@*/ /*@null@*/struct commonio_entry *cursor;
/*
* Various flags.