summaryrefslogtreecommitdiff
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
parentec90c8fa344379dff8eb8858d41bcfc90caea396 (diff)
downloadfribid-401ee9619aadd261e4c2ab2f48b3c2b025918ad0.tar.gz
fribid-401ee9619aadd261e4c2ab2f48b3c2b025918ad0.tar.bz2
fribid-401ee9619aadd261e4c2ab2f48b3c2b025918ad0.zip
Change unspecified argument lists "()" into "(void)"
-rw-r--r--client/bankid.c2
-rw-r--r--client/bankid.h2
-rw-r--r--client/certutil.c6
-rw-r--r--client/certutil.h6
-rw-r--r--client/gtk.c16
-rw-r--r--client/main.c2
-rw-r--r--client/pkcs11.c2
-rw-r--r--client/pkcs12.c2
-rw-r--r--client/platform.h14
-rw-r--r--client/prefs.c2
-rw-r--r--client/prefs.h2
-rw-r--r--common/pipe.c2
-rw-r--r--plugin/npmain.c8
13 files changed, 33 insertions, 33 deletions
diff --git a/client/bankid.c b/client/bankid.c
index bc9fcd4..67ff7fc 100644
--- a/client/bankid.c
+++ b/client/bankid.c
@@ -43,7 +43,7 @@
* Nexus Personal for Linux in order to be compatible with all servers, which
* may or may not accept unofficial version strings.
*/
-static char *getVersionString() {
+static char *getVersionString(void) {
static const char template[] =
"Personal=%1$s&"
"libai_so=%1$s&"
diff --git a/client/bankid.h b/client/bankid.h
index 4de82d6..243eedd 100644
--- a/client/bankid.h
+++ b/client/bankid.h
@@ -32,7 +32,7 @@
#include "../common/biderror.h"
#include "../common/bidtypes.h"
-char *bankid_getVersion();
+char *bankid_getVersion(void);
BankIDError bankid_authenticate(Token *token,
const char *challenge, int32_t serverTime,
diff --git a/client/certutil.c b/client/certutil.c
index 43d6757..7c8cdc8 100644
--- a/client/certutil.c
+++ b/client/certutil.c
@@ -432,11 +432,11 @@ char *certutil_getBagAttr(PKCS12_SAFEBAG *bag, ASN1_OBJECT *oid) {
return str;
}
-void certutil_clearErrorString() {
+void certutil_clearErrorString(void) {
error_string = NULL;
}
-void certutil_updateErrorString() {
+void certutil_updateErrorString(void) {
ERR_load_crypto_strings();
#if ENABLE_PKCS11
ERR_load_PKCS11_strings();
@@ -445,7 +445,7 @@ void certutil_updateErrorString() {
fprintf(stderr, BINNAME ": error from OpenSSL or libP11: %s\n", error_string);
}
-char *certutil_getErrorString() {
+char *certutil_getErrorString(void) {
return error_string;
}
diff --git a/client/certutil.h b/client/certutil.h
index 684b1a8..c17dbec 100644
--- a/client/certutil.h
+++ b/client/certutil.h
@@ -52,9 +52,9 @@ void certutil_freeList(char ***list, size_t *count);
PKCS7 *certutil_parseP7SignedData(const char *p7data, size_t length);
char *certutil_makeFilename(X509_NAME *xname);
char *certutil_getBagAttr(PKCS12_SAFEBAG *bag, ASN1_OBJECT *oid);
-void certutil_clearErrorString();
-void certutil_updateErrorString();
-char *certutil_getErrorString();
+void certutil_clearErrorString(void);
+void certutil_updateErrorString(void);
+char *certutil_getErrorString(void);
#endif
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));
}
diff --git a/client/main.c b/client/main.c
index d824ed5..0997f37 100644
--- a/client/main.c
+++ b/client/main.c
@@ -308,7 +308,7 @@ void pipeCommand(PipeCommand command, const char *url, const char *hostname,
* This happens when one of the Javascript methods of an
* plugin object is called.
*/
-void pipeData() {
+void pipeData(void) {
PipeCommand command = pipe_readCommand(stdin);
char *url = pipe_readString(stdin);
char *hostname = pipe_readString(stdin);
diff --git a/client/pkcs11.c b/client/pkcs11.c
index 94c769c..a2f16f3 100644
--- a/client/pkcs11.c
+++ b/client/pkcs11.c
@@ -260,7 +260,7 @@ static const Backend backend_template = {
.sign = _backend_sign,
};
-Backend *pkcs11_getBackend() {
+Backend *pkcs11_getBackend(void) {
Backend *backend = malloc(sizeof(Backend));
memcpy(backend, &backend_template, sizeof(Backend));
return backend;
diff --git a/client/pkcs12.c b/client/pkcs12.c
index 4eb10ae..6a35f7a 100644
--- a/client/pkcs12.c
+++ b/client/pkcs12.c
@@ -855,7 +855,7 @@ static const Backend backend_template = {
.sign = _backend_sign,
};
-Backend *pkcs12_getBackend() {
+Backend *pkcs12_getBackend(void) {
Backend *backend = malloc(sizeof(Backend));
memcpy(backend, &backend_template, sizeof(Backend));
return backend;
diff --git a/client/platform.h b/client/platform.h
index 4279171..31ecf46 100644
--- a/client/platform.h
+++ b/client/platform.h
@@ -34,7 +34,7 @@
void platform_init(int *argc, char ***argv);
/* Pipe I/O */
-typedef void (PlatformPipeFunction) ();
+typedef void (PlatformPipeFunction) (void);
void platform_setupPipe(PlatformPipeFunction *pipeFunction);
/* File IO */
@@ -52,7 +52,7 @@ char *platform_currentPath(PlatformDirIter *iter);
void platform_closeDir(PlatformDirIter *iter);
void platform_keyDirs(char*** path, size_t* len);
-PlatformDirIter *platform_openKeysDir();
+PlatformDirIter *platform_openKeysDir(char *path);
char *platform_filterFilename(const char *filename);
char *platform_getFilenameForKey(const char *nameAttr);
@@ -81,16 +81,16 @@ void platform_setConfigString(PLATFORM_CFGPARAMS, const char *value);
// (for example, None on X11)
#define PLATFORM_NO_WINDOW 0
-void platform_mainloop();
-void platform_leaveMainloop();
+void platform_mainloop(void);
+void platform_leaveMainloop(void);
/* Signature dialog */
void platform_startSign(const char *url, const char *hostname, const char *ip,
unsigned long parentWindowId);
-void platform_endSign();
+void platform_endSign(void);
void platform_setNotifier(BackendNotifier *notifier);
void platform_setMessage(const char *message);
-void platform_addKeyDirectories();
+void platform_addKeyDirectories(void);
void platform_addToken(Token *token);
void platform_removeToken(Token *token);
bool platform_sign(Token **token, char *password, int password_maxlen);
@@ -98,7 +98,7 @@ bool platform_sign(Token **token, char *password, int password_maxlen);
/* Password selection (and key generation) dialog */
void platform_startChoosePassword(const char *name, unsigned long parentWindowId);
void platform_setPasswordPolicy(int minLength, int minNonDigits, int minDigits);
-void platform_endChoosePassword();
+void platform_endChoosePassword(void);
bool platform_choosePassword(char *password, long password_maxlen);
/* Errors */
diff --git a/client/prefs.c b/client/prefs.c
index 0b3a496..e0a01ed 100644
--- a/client/prefs.c
+++ b/client/prefs.c
@@ -33,7 +33,7 @@ const char *prefs_bankid_emulatedversion = NULL;
/**
* Loads the preferences from ~/.config/fribid/config
*/
-void prefs_load() {
+void prefs_load(void) {
PlatformConfig *cfg = platform_openConfig("fribid", "config");
if (cfg) {
char *s;
diff --git a/client/prefs.h b/client/prefs.h
index f009b35..97f637e 100644
--- a/client/prefs.h
+++ b/client/prefs.h
@@ -30,7 +30,7 @@ extern const char *prefs_pkcs11_module;
#endif
extern const char *prefs_bankid_emulatedversion;
-void prefs_load();
+void prefs_load(void);
#endif
diff --git a/common/pipe.c b/common/pipe.c
index 00183fd..2d6e08e 100644
--- a/common/pipe.c
+++ b/common/pipe.c
@@ -42,7 +42,7 @@
# define PIPE_ERROR_STRING ": pipe error (unknown location)\n"
#endif
-static void pipeError() {
+static void pipeError(void) {
fprintf(stderr, BINNAME PIPE_ERROR_STRING);
}
diff --git a/plugin/npmain.c b/plugin/npmain.c
index bb27cb9..7297938 100644
--- a/plugin/npmain.c
+++ b/plugin/npmain.c
@@ -77,7 +77,7 @@ NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) {
}
}
-char *NPP_GetMIMEDescription() {
+char *NPP_GetMIMEDescription(void) {
return MIME_VERSION ":" NO_FILE_EXTENSIONS ":Version;"
MIME_AUTHENTICATION ":" NO_FILE_EXTENSIONS ":Authentication;"
MIME_SIGNER ":" NO_FILE_EXTENSIONS ":Signer2;"
@@ -86,15 +86,15 @@ char *NPP_GetMIMEDescription() {
MIME_OLDSIGNER ":" NO_FILE_EXTENSIONS ":Signer";
}
-const char *NPP_GetPluginVersion() {
+const char *NPP_GetPluginVersion(void) {
return PACKAGEVERSION;
}
-NPError NPP_Initialize() {
+NPError NPP_Initialize(void) {
return NPERR_NO_ERROR;
}
-void NPP_Shutdown() {
+void NPP_Shutdown(void) {
}