From 30195614c4b0301b9fca5af9f750729ba5f3da81 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 2 May 2024 19:42:33 +0200 Subject: [PATCH] (submit/os-utils) os: utils: minor code formatting cleanup Just correcting some small indention issues, no actual change. Signed-off-by: Enrico Weigelt, metux IT consult --- os/utils.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/os/utils.c b/os/utils.c index ac5f9be93..d78059251 100644 --- a/os/utils.c +++ b/os/utils.c @@ -339,8 +339,7 @@ UseMsg(void) ErrorF("+xinerama Enable XINERAMA extension\n"); ErrorF("-xinerama Disable XINERAMA extension\n"); #endif - ErrorF - ("-dumbSched Disable smart scheduling and threaded input, enable old behavior\n"); + ErrorF("-dumbSched Disable smart scheduling and threaded input, enable old behavior\n"); ErrorF("-schedInterval int Set scheduler interval in msec\n"); ErrorF("-sigstop Enable SIGSTOP based startup\n"); ErrorF("+extension name Enable extension\n"); @@ -617,21 +616,21 @@ ProcessCommandLine(int argc, char *argv[]) DisableServerLock(); } #endif - else if ( strcmp( argv[i], "-maxclients") == 0) - { - if (++i < argc) { - LimitClients = atoi(argv[i]); - if (LimitClients != 64 && - LimitClients != 128 && - LimitClients != 256 && - LimitClients != 512 && + else if ( strcmp( argv[i], "-maxclients") == 0) + { + if (++i < argc) { + LimitClients = atoi(argv[i]); + if (LimitClients != 64 && + LimitClients != 128 && + LimitClients != 256 && + LimitClients != 512 && LimitClients != 1024 && LimitClients != 2048) { - FatalError("maxclients must be one of 64, 128, 256, 512, 1024 or 2048\n"); - } - } else - UseMsg(); - } + FatalError("maxclients must be one of 64, 128, 256, 512, 1024 or 2048\n"); + } + } else + UseMsg(); + } else if (strcmp(argv[i], "-nolisten") == 0) { if (++i < argc) { if (_XSERVTransNoListen(argv[i]))