From 087173d06f4848f19d186b6902d399ce9b7225e1 Mon Sep 17 00:00:00 2001 From: Goraf <22941576+Goraf@users.noreply.github.com> Date: Sat, 20 Jan 2018 16:25:13 +0100 Subject: Gadu-Gadu: code cleaning --- protocols/Gadu-Gadu/src/services.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/Gadu-Gadu/src/services.cpp') diff --git a/protocols/Gadu-Gadu/src/services.cpp b/protocols/Gadu-Gadu/src/services.cpp index c5ee323b29..0947a24906 100644 --- a/protocols/Gadu-Gadu/src/services.cpp +++ b/protocols/Gadu-Gadu/src/services.cpp @@ -43,6 +43,7 @@ char *gg_status2db(int status, const char *suffix) static char str[64]; mir_snprintf(str, "%s%s", prefix, suffix); + return str; } @@ -137,6 +138,7 @@ int gg_normalizestatus(int status) case ID_STATUS_OFFLINE: return ID_STATUS_OFFLINE; case ID_STATUS_INVISIBLE: return ID_STATUS_INVISIBLE; } + return ID_STATUS_AWAY; } @@ -162,6 +164,7 @@ INT_PTR GGPROTO::getavatarcaps(WPARAM wParam, LPARAM lParam) case AF_FETCHIFCONTACTOFFLINE: return 1; } + return 0; } @@ -347,6 +350,7 @@ INT_PTR GGPROTO::setmyavatar(WPARAM, LPARAM lParam) } setAvatar(szMyFilename); + return 0; } @@ -363,6 +367,7 @@ INT_PTR GGPROTO::getmyawaymsg(WPARAM wParam, LPARAM lParam) if (isonline() && szMsg) res = (lParam & SGMA_UNICODE) ? (INT_PTR)mir_wstrdup(szMsg) : (INT_PTR)mir_u2a(szMsg); gg_LeaveCriticalSection(&modemsg_mutex, "refreshstatus", 72, 1, "modemsg_mutex", 1); + return res; } -- cgit v1.2.3