Skip to content

Commit 22d3113

Browse files
committed
Clean up some compiler warnings
1 parent 179693a commit 22d3113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nm-anyconnect-service.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,11 @@ show_notification_full(NMAnyconnectPlugin *plugin, const char *summary, const ch
181181
// display the notification to the user
182182
// The following line needs to be executed under priv->uid (and not root or other users)
183183
notificationReturn = notify_notification_show (notification, &notificationError);
184-
g_message(body);
184+
g_message("%s", body);
185185

186186
// return the uid and gid to their saved values
187-
setgid(gid);
188-
setuid(uid);
187+
gid = setgid(gid);
188+
uid = setuid(uid);
189189

190190
if (!notificationReturn)
191191
g_warning("message not shown: %s", notificationError->message);

0 commit comments

Comments
 (0)