--- a/libpurple/internal.h Sun May 11 22:31:38 2014 +0200 +++ b/libpurple/internal.h Tue May 13 00:26:43 2014 +0200 @@ -167,6 +167,14 @@ #include <glib-object.h> +#ifdef __COVERITY__ + +/* avoid TAINTED_SCALAR warning */ +#undef g_utf8_next_char +#define g_utf8_next_char(p) (char *)((p) + 1) + +#endif + typedef union { struct sockaddr sa; @@ -336,4 +344,14 @@ const gchar * _purple_blist_get_localized_default_group_name(void); +/** + * Sets most commonly used socket flags: O_NONBLOCK and FD_CLOEXEC. + * + * @param fd The file descriptor for the socket. + * + * @return TRUE if succeeded, FALSE otherwise. + */ +gboolean +_purple_network_set_common_socket_flags(int fd); + #endif /* _PURPLE_INTERNAL_H_ */