summaryrefslogtreecommitdiffstats
path: root/keygen
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-04-10 13:49:00 -0700
committerPavel Roskin <plroskin@gmail.com>2016-04-21 21:21:15 -0700
commitbd0b1acf794b2552b13bd4185c8eef91b2d9784c (patch)
tree7b7d220d9cad6c6c7ca3f52867d7c5b97f8ccd34 /keygen
parent55e12a09d8297c62302a9a93414444f00dc8ec1c (diff)
downloadxrdp-proprietary-bd0b1acf794b2552b13bd4185c8eef91b2d9784c.tar.gz
xrdp-proprietary-bd0b1acf794b2552b13bd4185c8eef91b2d9784c.zip
Fix format warnings caused by g_writeln("")
Diffstat (limited to 'keygen')
-rw-r--r--keygen/keygen.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/keygen/keygen.c b/keygen/keygen.c
index 1e2dd25d..bafcaf1c 100644
--- a/keygen/keygen.c
+++ b/keygen/keygen.c
@@ -195,11 +195,11 @@ static tui8 g_testkey2048[376] = /* 2048 bit test key */
static int APP_CC
out_params(void)
{
- g_writeln("");
+ g_writeln("%s", "");
g_writeln("xrdp rsa key gen utility examples");
g_writeln(" xrdp-keygen xrdp ['path and file name' | auto] [512 or 2048]");
g_writeln(" xrdp-keygen test");
- g_writeln("");
+ g_writeln("%s", "");
return 0;
}
@@ -351,7 +351,7 @@ save_all(char *e_data, int e_len, char *n_data, int n_len,
}
g_writeln("saving to %s", filename);
- g_writeln("");
+ g_writeln("%s", "");
if (g_file_exist(filename))
{
@@ -411,9 +411,9 @@ key_gen(const char *path_and_file_name)
d_len = n_len;
sign_len = 64;
error = 0;
- g_writeln("");
+ g_writeln("%s", "");
g_writeln("Generating %d bit rsa key...", g_key_size_bits);
- g_writeln("");
+ g_writeln("%s", "");
if (error == 0)
{
@@ -428,7 +428,7 @@ key_gen(const char *path_and_file_name)
if (error == 0)
{
g_writeln("ssl_gen_key_xrdp1 ok");
- g_writeln("");
+ g_writeln("%s", "");
error = sign_key(e_data, e_len, n_data, n_len, sign_data, sign_len);
if (error != 0)
@@ -588,10 +588,10 @@ main(int argc, char **argv)
}
else if (g_strcasecmp(argv[1], "test") == 0)
{
- g_writeln("");
+ g_writeln("%s", "");
g_writeln("testing 512 bit key");
key_test512();
- g_writeln("");
+ g_writeln("%s", "");
g_writeln("testing 2048 bit key");
key_test2048();
return 0;