@frontent/cgi/cgi.c: Fixing some typos about variable names: from err to error and...
authorGabriel Falcao <root@gabrielfalcao.com>
Mon, 12 May 2008 13:39:27 +0000 (10:39 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@minaslivre.org>
Mon, 12 May 2008 14:35:25 +0000 (11:35 -0300)
frontend/cgi/cgi.c

index 3ebd3a0..238ac39 100644 (file)
@@ -54,14 +54,14 @@ cgi_serve_request (AtomCtx *ctx)
        {
          if (error->domain == G_FILE_ERROR &&
              (error->code == G_FILE_ERROR_EXIST ||
-              error->code == G_FILE_ERROR_ACCESS ||
+              error->code == G_FILE_ERROR_ACCES ||
               error->code == G_FILE_ERROR_PERM))
-           fprintf (stdout, "Status: 403 %s\n\n", err->message);
+           fprintf (stdout, "Status: 403 %s\n\n", error->message);
          else if (error->domain == G_FILE_ERROR &&
                   error->code == G_FILE_ERROR_NOENT)
-           fprintf (stdout, "Status: 404 %s\n\n", err->message);
+           fprintf (stdout, "Status: 404 %s\n\n", error->message);
          else
-           fprintf (stdout, "Status: 500 %s\n\n", err->message);
+           fprintf (stdout, "Status: 500 %s\n\n", error->message);
        }
     }
   else