Removing DEBUG() macro
This commit is contained in:
parent
2ab3b97ba0
commit
d73e45eff1
@ -21,12 +21,6 @@
|
|||||||
#ifndef DEFINES_H
|
#ifndef DEFINES_H
|
||||||
#define DEFINES_H
|
#define DEFINES_H
|
||||||
|
|
||||||
/* check for debug */
|
|
||||||
#ifdef XRDP_DEBUG
|
|
||||||
#define DEBUG(args) g_writeln args;
|
|
||||||
#else
|
|
||||||
#define DEBUG(args)
|
|
||||||
#endif
|
|
||||||
/* other macros */
|
/* other macros */
|
||||||
#undef MIN
|
#undef MIN
|
||||||
#define MIN(x1, x2) ((x1) < (x2) ? (x1) : (x2))
|
#define MIN(x1, x2) ((x1) < (x2) ? (x1) : (x2))
|
||||||
|
15
xrdp/xrdp.c
15
xrdp/xrdp.c
@ -445,7 +445,6 @@ int
|
|||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int exit_status = 0;
|
int exit_status = 0;
|
||||||
int test;
|
|
||||||
enum logReturns error;
|
enum logReturns error;
|
||||||
struct xrdp_startup_params startup_params = {0};
|
struct xrdp_startup_params startup_params = {0};
|
||||||
int pid;
|
int pid;
|
||||||
@ -453,17 +452,19 @@ main(int argc, char **argv)
|
|||||||
int daemon;
|
int daemon;
|
||||||
char text[256];
|
char text[256];
|
||||||
const char *pid_file = XRDP_PID_PATH "/xrdp.pid";
|
const char *pid_file = XRDP_PID_PATH "/xrdp.pid";
|
||||||
|
|
||||||
int errored_argc;
|
int errored_argc;
|
||||||
|
|
||||||
|
#ifdef XRDP_DEBUG
|
||||||
|
int test;
|
||||||
|
for (test = 0; test < argc; test++)
|
||||||
|
{
|
||||||
|
g_writeln("Argument %i - %s", test, argv[test]);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
g_init("xrdp");
|
g_init("xrdp");
|
||||||
ssl_init();
|
ssl_init();
|
||||||
|
|
||||||
for (test = 0; test < argc; test++)
|
|
||||||
{
|
|
||||||
DEBUG(("Argument %i - %s", test, argv[test]));
|
|
||||||
}
|
|
||||||
|
|
||||||
startup_params.xrdp_ini = XRDP_CFG_PATH "/xrdp.ini";
|
startup_params.xrdp_ini = XRDP_CFG_PATH "/xrdp.ini";
|
||||||
|
|
||||||
errored_argc = xrdp_process_params(argc, argv, &startup_params);
|
errored_argc = xrdp_process_params(argc, argv, &startup_params);
|
||||||
|
Loading…
Reference in New Issue
Block a user