[PATCH 08/15] os: remove superfluous c option

Tiago Vignatti tiago.vignatti at nokia.com
Thu Oct 28 07:17:03 PDT 2010


key-click volume is set using -c, in which has changed the behaviour, not
turning off key-click anymore now. To turn it off now just use "-c 0" instead.

Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 os/utils.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/os/utils.c b/os/utils.c
index 3a747ad..3a8e9cf 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -464,8 +464,7 @@ void UseMsg(void)
     ErrorF("-audit int             set audit trail level\n");	
     ErrorF("-auth file             select authorization file\n");	
     ErrorF("-bs                    enable any backing store support\n");
-    ErrorF("-c                     turns off key-click\n");
-    ErrorF("c #                    key-click volume (0-100)\n");
+    ErrorF("-c #                   key-click volume (0-100)\n");
     ErrorF("-cc int                default color visual class\n");
     ErrorF("-nocursor              disable the cursor\n");
     ErrorF("-core                  generate core dump on fatal error\n");
@@ -611,17 +610,13 @@ ProcessCommandLine(int argc, char *argv[])
 	}
 	else if ( strcmp( argv[i], "-bs") == 0)
 	    BackingStore = TRUE;
-	else if ( strcmp( argv[i], "c") == 0)
+	else if ( strcmp( argv[i], "-c") == 0)
 	{
 	    if(++i < argc)
 	        defaultKeyboardControl.click = atoi(argv[i]);
 	    else
 		UseMsg();
 	}
-	else if ( strcmp( argv[i], "-c") == 0)
-	{
-	    defaultKeyboardControl.click = 0;
-	}
 	else if ( strcmp( argv[i], "-cc") == 0)
 	{
 	    if(++i < argc)
-- 
1.7.0.4



More information about the xorg-devel mailing list