summaryrefslogtreecommitdiff
path: root/client/gtk.c
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@kodafritt.se>2014-02-08 17:13:49 +0100
committerSamuel Lidén Borell <samuel@kodafritt.se>2014-02-08 17:13:49 +0100
commit401ee9619aadd261e4c2ab2f48b3c2b025918ad0 (patch)
tree92aa01921f79ac8a9dd12b88616fe77c352b57fc /client/gtk.c
parentec90c8fa344379dff8eb8858d41bcfc90caea396 (diff)
downloadfribid-401ee9619aadd261e4c2ab2f48b3c2b025918ad0.tar.gz
fribid-401ee9619aadd261e4c2ab2f48b3c2b025918ad0.tar.bz2
fribid-401ee9619aadd261e4c2ab2f48b3c2b025918ad0.zip
Change unspecified argument lists "()" into "(void)"
Diffstat (limited to 'client/gtk.c')
-rw-r--r--client/gtk.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/gtk.c b/client/gtk.c
index 2bc6c41..4371c8a 100644
--- a/client/gtk.c
+++ b/client/gtk.c
@@ -89,7 +89,7 @@ void platform_init(int *argc, char ***argv) {
gtk_init(argc, argv);
}
-void platform_leaveMainloop() {
+void platform_leaveMainloop(void) {
gtk_main_quit();
}
@@ -111,7 +111,7 @@ void platform_setupPipe(PlatformPipeFunction *pipeFunction) {
g_io_channel_unref(stdinChannel);
}
-void platform_mainloop() {
+void platform_mainloop(void) {
gtk_main();
}
@@ -184,11 +184,11 @@ static void showMessage(GtkMessageType type, const char *text) {
gtk_widget_destroy(dialog);
}
-static void hide_message () {
+static void hide_message(void) {
gtk_widget_hide (GTK_WIDGET (info_bar));
}
-static void show_inline_message (GtkMessageType message_type, const char *message) {
+static void show_inline_message(GtkMessageType message_type, const char *message) {
gtk_widget_show(GTK_WIDGET (info_bar));
gtk_info_bar_set_message_type(GTK_INFO_BAR (info_bar),
message_type);
@@ -364,7 +364,7 @@ void platform_startSign(const char *url, const char *hostname, const char *ip,
signDialogMapped = false;
}
-void platform_endSign() {
+void platform_endSign(void) {
// Remove all manually added tokens
GtkTreeModel *model = GTK_TREE_MODEL(tokens);
GtkTreeIter iter = { .stamp = 0 };
@@ -420,7 +420,7 @@ void platform_setNotifier(BackendNotifier *notifierToUse) {
/**
* Add from the key directories
*/
-void platform_addKeyDirectories() {
+void platform_addKeyDirectories(void) {
char** paths;
size_t len;
@@ -505,7 +505,7 @@ void platform_removeToken(Token *token) {
}
-static void selectExternalFile() {
+static void selectExternalFile(void) {
TokenError error = TokenError_Success;
GtkFileChooser *chooser = GTK_FILE_CHOOSER(gtk_file_chooser_dialog_new(
_("Select external identity file"), GTK_WINDOW(signDialog),
@@ -613,7 +613,7 @@ void platform_setPasswordPolicy(int minLength, int minNonDigits, int minDigits)
keygenPasswordMinDigits = minDigits;
}
-void platform_endChoosePassword() {
+void platform_endChoosePassword(void) {
gtk_widget_destroy(GTK_WIDGET(keygenDialog));
}