Return a copy of the internal node, caller is the owner
[cascardo/atompub.git] / src / main.c
index 2a790d0..673c702 100644 (file)
@@ -31,15 +31,14 @@ main (int argc, char **argv)
 {
   AtomCtx *ctx;
   IRI *iri;
-  Atom *atom;
-  GError *error;
+  AtomError *error;
   g_type_init ();
   ctx = atom_ctx_new ();
   atom_config_init (ctx);
   atom_backend_set (ctx, giochannel_backend ());
   if ((error = atom_error_get (ctx)) != NULL)
     {
-      g_message ("%s\n", error->message);
+      g_message ("%s\n", atom_error_message (error));
       exit (1);
     }
   cgi_serve_request (ctx);