diff options
| author | 2008-12-29 12:35:51 +0100 | |
|---|---|---|
| committer | 2009-01-02 09:55:08 -0800 | |
| commit | d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9 (patch) | |
| tree | 6ef70292982a499e36d4e14c529436f889e42be1 /src/initconf.c | |
| parent | 0efa3bc3a3519695f288211d720620cc0672f054 (diff) | |
| download | libimobiledevice-d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9.tar.gz libimobiledevice-d77ecbe3fbd73418dd72e147a0ac2a89e62b1cd9.tar.bz2 | |
Fix function prototypes
Add missing static, const, change function() to function(void)
Diffstat (limited to 'src/initconf.c')
| -rw-r--r-- | src/initconf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/initconf.c b/src/initconf.c index 8aca2a6..205c97a 100644 --- a/src/initconf.c +++ b/src/initconf.c | |||
| @@ -36,7 +36,7 @@ | |||
| 36 | * | 36 | * |
| 37 | * @param key The pointer to the desired location of the new key. | 37 | * @param key The pointer to the desired location of the new key. |
| 38 | */ | 38 | */ |
| 39 | void generate_key(gpointer key) | 39 | static void generate_key(gpointer key) |
| 40 | { | 40 | { |
| 41 | gnutls_x509_privkey_generate(*((gnutls_x509_privkey_t *) key), GNUTLS_PK_RSA, 2048, 0); | 41 | gnutls_x509_privkey_generate(*((gnutls_x509_privkey_t *) key), GNUTLS_PK_RSA, 2048, 0); |
| 42 | g_thread_exit(0); | 42 | g_thread_exit(0); |
| @@ -44,7 +44,7 @@ void generate_key(gpointer key) | |||
| 44 | 44 | ||
| 45 | /** Simple function that generates a spinner until the mutex is released. | 45 | /** Simple function that generates a spinner until the mutex is released. |
| 46 | */ | 46 | */ |
| 47 | void progress_bar(gpointer mutex) | 47 | static void progress_bar(gpointer mutex) |
| 48 | { | 48 | { |
| 49 | const char *spinner = "|/-\\|/-\\"; | 49 | const char *spinner = "|/-\\|/-\\"; |
| 50 | int i = 0; | 50 | int i = 0; |
