summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 19:29:19 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-19 19:29:19 +0000
commitb1629b1b2abc17a6430e4173d64d7956784118e0 (patch)
tree41b2747866f1fc726d3a6cfde9bff946f6b514f3 /console-tools
parentd8e87a09d1f90e527e48199f99e0a3537b12b842 (diff)
downloadbusybox-w32-b1629b1b2abc17a6430e4173d64d7956784118e0.tar.gz
busybox-w32-b1629b1b2abc17a6430e4173d64d7956784118e0.tar.bz2
busybox-w32-b1629b1b2abc17a6430e4173d64d7956784118e0.zip
- remove emacs layout block as suggested by Robert P.J. Day
- use shorter boilerplate while at it
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/chvt.c25
-rw-r--r--console-tools/openvt.c22
-rw-r--r--console-tools/setconsole.c22
3 files changed, 3 insertions, 66 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index cba5b4014..aff66e007 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -4,23 +4,9 @@
4 * 4 *
5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 5 * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */ 8 */
21 9
22/* no options, no getopt */
23
24#include <stdio.h> 10#include <stdio.h>
25#include <stdlib.h> 11#include <stdlib.h>
26#include <fcntl.h> 12#include <fcntl.h>
@@ -50,12 +36,3 @@ int chvt_main(int argc, char **argv)
50 } 36 }
51 return EXIT_SUCCESS; 37 return EXIT_SUCCESS;
52} 38}
53
54
55/*
56Local Variables:
57c-file-style: "linux"
58c-basic-offset: 4
59tab-width: 4
60End:
61*/
diff --git a/console-tools/openvt.c b/console-tools/openvt.c
index de6a19fbc..948dba767 100644
--- a/console-tools/openvt.c
+++ b/console-tools/openvt.c
@@ -5,19 +5,7 @@
5 * busyboxed by Quy Tonthat <quy@signal3.com> 5 * busyboxed by Quy Tonthat <quy@signal3.com>
6 * hacked by Tito <farmatito@tiscali.it> 6 * hacked by Tito <farmatito@tiscali.it>
7 * 7 *
8 * This program is free software; you can redistribute it and/or modify 8 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 */ 9 */
22 10
23/* getopt not needed */ 11/* getopt not needed */
@@ -63,11 +51,3 @@ int openvt_main(int argc, char **argv)
63 } 51 }
64 return EXIT_SUCCESS; 52 return EXIT_SUCCESS;
65} 53}
66
67/*
68Local Variables:
69c-file-style: "linux"
70c-basic-offset: 4
71tab-width: 4
72End:
73*/
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c
index 6b4989d77..bf06cc530 100644
--- a/console-tools/setconsole.c
+++ b/console-tools/setconsole.c
@@ -4,19 +4,7 @@
4 * 4 *
5 * Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de> 5 * Copyright (C) 2004,2005 Enrik Berkhan <Enrik.Berkhan@inka.de>
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 */ 8 */
21 9
22#include <sys/ioctl.h> 10#include <sys/ioctl.h>
@@ -60,11 +48,3 @@ int setconsole_main(int argc, char **argv)
60 } 48 }
61 return EXIT_SUCCESS; 49 return EXIT_SUCCESS;
62} 50}
63
64/*
65Local Variables:
66c-file-style: "linux"
67c-basic-offset: 4
68tab-width: 4
69End:
70*/