summaryrefslogtreecommitdiff
path: root/src/psk.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-05-03 22:29:21 +0200
committerSimon Josefsson <simon@josefsson.org>2009-05-03 22:29:21 +0200
commit2d2b4693689d5f3b858e2d983c428f2e4a24d364 (patch)
treefe1557c51142e9ab149a44a2cca32ec24d7d2f64 /src/psk.c
parent6ab3a57a4af0a0e64f4afe2794682128d108ff34 (diff)
downloadgnutls-2d2b4693689d5f3b858e2d983c428f2e4a24d364.tar.gz
Fix syntax-check warnings.
Diffstat (limited to 'src/psk.c')
-rw-r--r--src/psk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/psk.c b/src/psk.c
index 1ae05d01ff..b0047e08ee 100644
--- a/src/psk.c
+++ b/src/psk.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2005, 2007, 2008 Free Software Foundation
+ * Copyright (C) 2005, 2007, 2008, 2009 Free Software Foundation
*
* This file is part of GNUTLS.
*
@@ -21,6 +21,7 @@
/* Gnulib portability files. */
#include <version-etc.h>
+#include <progname.h>
#ifndef ENABLE_PSK
@@ -74,6 +75,8 @@ main (int argc, char **argv)
gnutls_datum_t dkey;
size_t hex_key_size = sizeof (hex_key);
+ set_program_name (argv[0]);
+
if ((ret = gnutls_global_init ()) < 0)
{
fprintf (stderr, "global_init: %s\n", gnutls_strerror (ret));