Changes in storage.c [7e3592e:b73ac9c]
Legend:
- Unmodified
- Added
- Removed
-
storage.c
r7e3592e rb73ac9c 6 6 7 7 /* Support for multiple storage backends */ 8 9 /* Copyright (C) 2005 Jelmer Vernooij <jelmer@samba.org> */10 8 11 9 /* … … 31 29 32 30 extern storage_t storage_text; 33 extern storage_t storage_xml;34 31 35 static GList *storage_backends = NULL; 32 static GList text_entry = { &storage_text, NULL, NULL }; 33 static GList *storage_backends = &text_entry; 36 34 37 35 void register_storage_backend(storage_t *backend) … … 43 41 { 44 42 GList *gl; 45 storage_t *st = NULL;43 storage_t *st; 46 44 47 45 for (gl = storage_backends; gl; gl = gl->next) { … … 65 63 int i; 66 64 storage_t *storage; 67 68 register_storage_backend(&storage_text); 69 register_storage_backend(&storage_xml); 70 65 71 66 storage = storage_init_single(primary); 72 if (storage == NULL && storage->save == NULL)67 if (storage == NULL) 73 68 return NULL; 74 69
Note: See TracChangeset
for help on using the changeset viewer.