Review possible errors and document them

Review all the possible errors and document them for each function.
This commit is contained in:
Bastien Nocera
2008-11-24 14:16:41 +00:00
committed by Daniel Drake
parent 1abf51afa4
commit 7b06c4b7f3
6 changed files with 100 additions and 57 deletions

View File

@ -257,11 +257,7 @@ static GSList *scan_dev_storedir(char *devpath, uint16_t driver_id,
GSList *file_storage_discover_prints(struct fp_dscv_dev *dev, const char *username)
{
//GDir *dir;
//const gchar *ent;
//GError *err = NULL;
GSList *list = NULL;
//GSList *elem;
char *base_store = NULL;
char *storedir = NULL;
int r;
@ -276,7 +272,6 @@ GSList *file_storage_discover_prints(struct fp_dscv_dev *dev, const char *userna
storedir = get_path_to_storedir(fp_driver_get_driver_id(fp_dscv_dev_get_driver(dev)),
fp_dscv_dev_get_devtype(dev), base_store);
g_message("Entering %s", storedir);
list = scan_dev_storedir(storedir, fp_driver_get_driver_id(fp_dscv_dev_get_driver(dev)),
fp_dscv_dev_get_devtype(dev), list);