Use g_fchmod instead of fchmod to remove wrapper.

Wed, 30 Oct 2019 22:04:59 -0400

author
Elliott Sales de Andrade <qulogic@pidgin.im>
date
Wed, 30 Oct 2019 22:04:59 -0400
changeset 40092
5f6a8bcd216d
parent 40091
ff90f032afe4
child 40093
dd7183cf0a71

Use g_fchmod instead of fchmod to remove wrapper.

libpurple/protocols/silc/util.c file | annotate | diff | comparison | revisions
libpurple/win32/libc_interface.h file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/silc/util.c	Wed Oct 30 21:58:52 2019 -0400
+++ b/libpurple/protocols/silc/util.c	Wed Oct 30 22:04:59 2019 -0400
@@ -247,7 +247,7 @@
 	if ((st.st_mode & 0777) != 0600) {
 		purple_debug_warning("silc", "Wrong permissions in your private key file `%s'!\n"
 			"Trying to change them ...\n", file_private_key);
-		if ((fd == -1) || (fchmod(fd, S_IRUSR | S_IWUSR)) == -1) {
+		if ((fd == -1) || (g_fchmod(fd, S_IRUSR | S_IWUSR)) == -1) {
 			purple_debug_error("silc",
 				"Failed to change permissions for private key file!\n"
 				"Permissions for your private key file must be 0600.\n");
--- a/libpurple/win32/libc_interface.h	Wed Oct 30 21:58:52 2019 -0400
+++ b/libpurple/win32/libc_interface.h	Wed Oct 30 22:04:59 2019 -0400
@@ -145,9 +145,6 @@
 #define rename( oldname, newname ) \
 g_rename( oldname, newname )
 
-/* sys/stat.h */
-#define fchmod(a,b)
-
 /* time.h */
 /* XXX: it may be also defined by pthread.h */
 #undef localtime_r

mercurial