openbsd-ports/www/dillo/patches/patch-src_dillo_c

34 lines
964 B
Plaintext

$OpenBSD: patch-src_dillo_c,v 1.2 2002/05/02 19:16:25 couderc Exp $
--- src/dillo.c.orig Mon Mar 18 16:02:50 2002
+++ src/dillo.c Wed May 1 15:29:09 2002
@@ -46,6 +46,7 @@
#include "dw.h"
#include "dw_widget.h"
#include "cookies.h"
+#include "debug.h"
/*
@@ -136,7 +137,7 @@ gint main(int argc, char *argv[])
a_Dw_freeall();
a_History_free();
- printf("Dillo: normal exit!\n");
+ DEBUG_MSG(3, "Dillo: normal exit!\n");
return 0;
}
@@ -150,10 +151,10 @@ static void Dillo_check_home_dir(char *d
if ( stat(dir, &st) == -1 ) {
if ( errno == ENOENT && mkdir(dir, 0700) < 0 ) {
- g_print("Dillo: error creating directory %s: %s\n",
+ DEBUG_MSG(3, "Dillo: error creating directory %s: %s\n",
dir, strerror(errno));
} else
- g_print("Dillo: error reading %s: %s\n", dir, strerror(errno));
+ DEBUG_MSG(3, "Dillo: error reading %s: %s\n", dir, strerror(errno));
}
}