Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalwareutils.git;a=commitdiff;h=18052f4fb18a65dc9ee39df6cc9ac7ed3f28af0a

commit 18052f4fb18a65dc9ee39df6cc9ac7ed3f28af0a
Author: James Buren <[email protected]>
Date:   Thu Mar 8 05:03:37 2012 -0600

make most objects in mouseconfig static

diff --git a/mouseconfig/mouseconfig.c b/mouseconfig/mouseconfig.c
index e13c9d0..0929ac9 100644
--- a/mouseconfig/mouseconfig.c
+++ b/mouseconfig/mouseconfig.c
@@ -1,10 +1,10 @@
/*
*  mouseconfig.c for frugalwareutils
- *
+ *
*  Copyright (c) 2006 by Miklos Vajna <[email protected]>
*
*  Several ideas from Patrick J. Volkerding's mouseconfig script
- *
+ *
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
@@ -17,7 +17,7 @@
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
- *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
*  USA.
*/

@@ -34,9 +34,10 @@
#include <unistd.h>
#include <libintl.h>

+static
char* ask_mouse()
{
-       char *modes[] =
+       char *modes[] =
{
"ps2", _("PS/2 port mouse (most desktops and laptops)"),
"imps2", _("Microsoft PS/2 Intellimouse"),
@@ -70,9 +71,10 @@ char* ask_mouse()
return(ptr);
}

+static
char* ask_port()
{
-       char *ports[] =
+       char *ports[] =
{
"/dev/ttyS0", _("(COM1: under DOS)"),
"/dev/ttyS1", _("(COM2: under DOS)"),
@@ -87,6 +89,7 @@ char* ask_port()
return(ptr);
}

+static
int run(int argc, char **argv)
{
FILE *input = stdin;
@@ -184,6 +187,7 @@ int run(int argc, char **argv)
return(0);
}

+static
plugin_t plugin =
{
"mouseconfig",
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to