[gq-commit] gq/src gq.c,1.17,1.18
Status: Beta
Brought to you by:
sur5r
From: <sta...@us...> - 2003-10-05 13:42:47
|
Update of /cvsroot/gqclient/gq/src In directory sc8-pr-cvs1:/tmp/cvs-serv5268 Modified Files: gq.c Log Message: * Got rid of most hand-knit linked list implementations, replaced them with GLists (errorchains, config->ldapservers, etc.) * Many object types now have constructors and destructors of the form new_<type> and free_<type>. Use them instead of self-allocating and freeing memory as it was done before. Removed all such old style object handling Index: gq.c =================================================================== RCS file: /cvsroot/gqclient/gq/src/gq.c,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** gq.c 4 Oct 2003 10:13:29 -0000 1.17 --- gq.c 5 Oct 2003 13:42:36 -0000 1.18 *************** *** 152,156 **** if (config->changed) save_config(); ! cleanup_config(config); gtk_exit(0); --- 152,157 ---- if (config->changed) save_config(); ! free_config(config); ! config = NULL; gtk_exit(0); *************** *** 168,171 **** --- 169,173 ---- { struct ldapserver *server; + GList *I; #ifdef DEBUG *************** *** 174,179 **** } #endif /* DEBUG */ ! ! for(server = config->ldapservers ; server ; server = server->next) { server->server_down++; } --- 176,182 ---- } #endif /* DEBUG */ ! ! for (I = config->servers ; I ; I = g_list_next(I)) { ! server = (struct ldapserver *) I->data; server->server_down++; } |