changeset 14165:b04e36dae7af

[gaim-migrate @ 16815] If g_open isn't a macro, we need to specify the mode variable committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 17 Aug 2006 14:07:20 +0000
parents 879bb47cff8e
children fcae2cfe26eb
files src/protocols/silc/util.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/silc/util.c	Thu Aug 17 10:04:21 2006 +0000
+++ b/src/protocols/silc/util.c	Thu Aug 17 14:07:20 2006 +0000
@@ -234,7 +234,7 @@
 	}
 #endif
 
-	if ((fd = g_open(file_private_key, O_RDONLY)) != -1) {
+	if ((fd = g_open(file_private_key, O_RDONLY, 0)) != -1) {
 		if ((fstat(fd, &st)) == -1) {
 			gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n",
 							 file_private_key, strerror(errno));
@@ -254,7 +254,7 @@
 				return FALSE;
 			}
 
-			if ((fd = g_open(file_private_key, O_RDONLY)) != -1) {
+			if ((fd = g_open(file_private_key, O_RDONLY, 0)) != -1) {
 				if ((fstat(fd, &st)) == -1) {
 					gaim_debug_error("silc", "Couldn't stat '%s' private key, error: %s\n",
 							 file_private_key, strerror(errno));