]> the.earth.li Git - onak.git/blobdiff - add.c
Add Vim backup files + GNU Global tags to .gitignore
[onak.git] / add.c
diff --git a/add.c b/add.c
index 4e03719a82345819a340c3381a8ec3edb9035ba2..48dccf09cde79bb7165eee81fd949ae167dc01b8 100644 (file)
--- a/add.c
+++ b/add.c
  * more details.
  *
  * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
-#include <errno.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include "charfuncs.h"
 #include "getcgi.h"
 #include "keydb.h"
-#include "keystructs.h"
 #include "log.h"
 #include "mem.h"
-#include "merge.h"
 #include "onak-conf.h"
 #include "parsekey.h"
 
@@ -89,7 +86,7 @@ int main(int argc, char *argv[])
                                fclose(stderr);
                        }
                        catchsignals();
-                       dbctx = config.dbinit(false);
+                       dbctx = config.dbinit(config.backend, false);
                        
                        count = cleankeys(keys);
                        logthing(LOGTHING_INFO, "%d keys cleaned.",