Skip to content

Commit

Permalink
Fix: clang
Browse files Browse the repository at this point in the history
  • Loading branch information
badcast committed Apr 2, 2024
1 parent 8ce6e24 commit a379943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client-frontend/dragon-tea/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

#include "tea_main.h"

int main(int argc, char *argv)
int main(int argc, char *argv[])
{
return tea_main(argc, argv);
}
4 changes: 2 additions & 2 deletions client-frontend/dragon-tea/src/teauilib/core/ui_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ gboolean on_chat_message_handler_async(gpointer)
if(last_chance_state != CHANCE_TO_LOGOUT)
strcpy(buffer, _("Your network has been restored. "));
else
buffer[0] = NULL;
buffer[0] = '\0';

strcat(buffer, _("You're online."));
tea_ui_chat_status_text(buffer);
Expand Down Expand Up @@ -174,7 +174,7 @@ gboolean on_chat_message_handler_async(gpointer)
{
gnotify = notify_notification_new(
message->sent_user_name, message->message_text, gtk_window_get_icon_name(widgets.main_window));
notify_notification_add_action(gnotify, "custom_action", _("Read message"), notify_action, NULL, NULL);
notify_notification_add_action(gnotify, "custom_action", _("Read message"), (NotifyActionCallback) notify_action, NULL, NULL);

if(!env.old_notify_remove)
notify_notification_set_timeout(gnotify, 0);
Expand Down

0 comments on commit a379943

Please sign in to comment.