summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-03-16 22:17:55 +0100
committerGünther Deschner <gd@samba.org>2010-03-16 22:28:03 +0100
commit0d8ab380551941ab5880a6e5be49b73d541746a4 (patch)
tree241a452512e211f8622e5766a373c638464258af
parent2070c042305eb14bac5182d7a061aaf38086f3f3 (diff)
downloadsamba-0d8ab380551941ab5880a6e5be49b73d541746a4.tar.gz
samba-0d8ab380551941ab5880a6e5be49b73d541746a4.tar.bz2
samba-0d8ab380551941ab5880a6e5be49b73d541746a4.zip
s3: fix buildwarning in smbta-util.
Guenther
-rw-r--r--source3/utils/smbta-util.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/utils/smbta-util.c b/source3/utils/smbta-util.c
index 8ce87b3da2..75669c1159 100644
--- a/source3/utils/smbta-util.c
+++ b/source3/utils/smbta-util.c
@@ -19,7 +19,7 @@
#include "includes.h"
-static void delete_key();
+static void delete_key(void);
static void help()
@@ -36,11 +36,12 @@ printf("\n");
static void check_key()
{ size_t size;
+ char *akey;
if (!secrets_init()) {
printf("Error opening secrets database.");
exit(1);
}
- char *akey = (char *) secrets_fetch("smb_traffic_analyzer_key", &size);
+ akey = (char *) secrets_fetch("smb_traffic_analyzer_key", &size);
if (akey != NULL) {
printf("A key is installed: %s\n",akey);
printf("Encryption activated.\n");
@@ -127,7 +128,7 @@ static void create_new_key_and_activate( char *filename )
create_file_from_key(filename);
}
-static void delete_key()
+static void delete_key(void)
{
size_t size;
char *akey = (char *) secrets_fetch("smb_traffic_analyzer_key", &size);
@@ -204,4 +205,5 @@ int main(int argc, char **argv)
}
process_arguments(argc, argv);
+ exit(0);
}