Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Quesnel <131881+aquesnel@users.noreply.github.com>2021-03-06 19:15:42 +0300
committerAlexandre Quesnel <131881+aquesnel@users.noreply.github.com>2021-03-15 02:33:31 +0300
commitd73e45eff12a8c85083363a63db6d443db4544dc (patch)
tree9416b7bb32675a06e3178f739d6567063e961ee0
parent2ab3b97ba0ff0b29cd6acffdd80e10a1f8b9123a (diff)
Removing DEBUG() macro
-rw-r--r--common/defines.h6
-rw-r--r--xrdp/xrdp.c13
2 files changed, 7 insertions, 12 deletions
diff --git a/common/defines.h b/common/defines.h
index f65f2bea..ce680d91 100644
--- a/common/defines.h
+++ b/common/defines.h
@@ -21,12 +21,6 @@
#ifndef DEFINES_H
#define DEFINES_H
-/* check for debug */
-#ifdef XRDP_DEBUG
-#define DEBUG(args) g_writeln args;
-#else
-#define DEBUG(args)
-#endif
/* other macros */
#undef MIN
#define MIN(x1, x2) ((x1) < (x2) ? (x1) : (x2))
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c
index 5c061950..3f4f8595 100644
--- a/xrdp/xrdp.c
+++ b/xrdp/xrdp.c
@@ -445,7 +445,6 @@ int
main(int argc, char **argv)
{
int exit_status = 0;
- int test;
enum logReturns error;
struct xrdp_startup_params startup_params = {0};
int pid;
@@ -453,16 +452,18 @@ main(int argc, char **argv)
int daemon;
char text[256];
const char *pid_file = XRDP_PID_PATH "/xrdp.pid";
-
int errored_argc;
- g_init("xrdp");
- ssl_init();
-
+#ifdef XRDP_DEBUG
+ int test;
for (test = 0; test < argc; test++)
{
- DEBUG(("Argument %i - %s", test, argv[test]));
+ g_writeln("Argument %i - %s", test, argv[test]);
}
+#endif
+
+ g_init("xrdp");
+ ssl_init();
startup_params.xrdp_ini = XRDP_CFG_PATH "/xrdp.ini";