diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-03-15 08:29:22 +0000 |
commit | c7bda1ce659294d6e22c06e087f6f265983c7578 (patch) | |
tree | 4c6d2217f4d8306c59cf1096f8664e1cfd167213 /console-tools | |
parent | 8854004b41065b3d081af7f3df13a100b0c8bfbe (diff) | |
download | busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.gz busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.tar.bz2 busybox-w32-c7bda1ce659294d6e22c06e087f6f265983c7578.zip |
Remove trailing whitespace. Update copyright to include 2004.
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/Makefile | 2 | ||||
-rw-r--r-- | console-tools/Makefile.in | 2 | ||||
-rw-r--r-- | console-tools/chvt.c | 2 | ||||
-rw-r--r-- | console-tools/clear.c | 2 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 4 | ||||
-rw-r--r-- | console-tools/dumpkmap.c | 14 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 2 | ||||
-rw-r--r-- | console-tools/openvt.c | 2 | ||||
-rw-r--r-- | console-tools/reset.c | 2 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 4 |
10 files changed, 18 insertions, 18 deletions
diff --git a/console-tools/Makefile b/console-tools/Makefile index d54c778d4..2ee51a5e6 100644 --- a/console-tools/Makefile +++ b/console-tools/Makefile | |||
@@ -1,6 +1,6 @@ | |||
1 | # Makefile for busybox | 1 | # Makefile for busybox |
2 | # | 2 | # |
3 | # Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
4 | # | 4 | # |
5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | 6 | # it under the terms of the GNU General Public License as published by |
diff --git a/console-tools/Makefile.in b/console-tools/Makefile.in index 032b194f6..1d756c721 100644 --- a/console-tools/Makefile.in +++ b/console-tools/Makefile.in | |||
@@ -1,6 +1,6 @@ | |||
1 | # Makefile for busybox | 1 | # Makefile for busybox |
2 | # | 2 | # |
3 | # Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 3 | # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
4 | # | 4 | # |
5 | # This program is free software; you can redistribute it and/or modify | 5 | # This program is free software; you can redistribute it and/or modify |
6 | # it under the terms of the GNU General Public License as published by | 6 | # it under the terms of the GNU General Public License as published by |
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 8ea062cde..3398892f5 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -2,7 +2,7 @@ | |||
2 | /* | 2 | /* |
3 | * Mini chvt implementation for busybox | 3 | * Mini chvt implementation for busybox |
4 | * | 4 | * |
5 | * Copyright (C) 1999-2003 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 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
diff --git a/console-tools/clear.c b/console-tools/clear.c index 45976e1b5..e43ed0e02 100644 --- a/console-tools/clear.c +++ b/console-tools/clear.c | |||
@@ -2,7 +2,7 @@ | |||
2 | /* | 2 | /* |
3 | * Mini clear implementation for busybox | 3 | * Mini clear implementation for busybox |
4 | * | 4 | * |
5 | * Copyright (C) 1999-2003 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 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index 363ecdf12..08a9d2122 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -3,13 +3,13 @@ | |||
3 | * Disallocate virtual terminal(s) | 3 | * Disallocate virtual terminal(s) |
4 | * | 4 | * |
5 | * Copyright (C) 2003 by Tito Ragusa <farmatito@tiscali.it> | 5 | * Copyright (C) 2003 by Tito Ragusa <farmatito@tiscali.it> |
6 | * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 6 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by | 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 | 10 | * the Free Software Foundation; either version 2 of the License, or |
11 | * (at your option) any later version. | 11 | * (at your option) any later version. |
12 | * | 12 | * |
13 | * This program is distributed in the hope that it will be useful, | 13 | * This program is distributed in the hope that it will be useful, |
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index 19ba77d82..6085a446b 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c | |||
@@ -56,7 +56,7 @@ int dumpkmap_main(int argc, char **argv) | |||
56 | write(1, magic, 7); | 56 | write(1, magic, 7); |
57 | 57 | ||
58 | for (i=0; i < MAX_NR_KEYMAPS; i++) flags[i]=0; | 58 | for (i=0; i < MAX_NR_KEYMAPS; i++) flags[i]=0; |
59 | flags[0]=1; | 59 | flags[0]=1; |
60 | flags[1]=1; | 60 | flags[1]=1; |
61 | flags[2]=1; | 61 | flags[2]=1; |
62 | flags[4]=1; | 62 | flags[4]=1; |
@@ -66,9 +66,9 @@ int dumpkmap_main(int argc, char **argv) | |||
66 | flags[9]=1; | 66 | flags[9]=1; |
67 | flags[10]=1; | 67 | flags[10]=1; |
68 | flags[12]=1; | 68 | flags[12]=1; |
69 | 69 | ||
70 | /* dump flags */ | 70 | /* dump flags */ |
71 | for (i=0; i < MAX_NR_KEYMAPS; i++) write(1,&flags[i],1); | 71 | for (i=0; i < MAX_NR_KEYMAPS; i++) write(1,&flags[i],1); |
72 | 72 | ||
73 | for (i = 0; i < MAX_NR_KEYMAPS; i++) { | 73 | for (i = 0; i < MAX_NR_KEYMAPS; i++) { |
74 | if (flags[i] == 1) { | 74 | if (flags[i] == 1) { |
@@ -76,13 +76,13 @@ int dumpkmap_main(int argc, char **argv) | |||
76 | ke.kb_index = j; | 76 | ke.kb_index = j; |
77 | ke.kb_table = i; | 77 | ke.kb_table = i; |
78 | if (ioctl(fd, KDGKBENT, &ke) < 0) { | 78 | if (ioctl(fd, KDGKBENT, &ke) < 0) { |
79 | 79 | ||
80 | bb_error_msg("ioctl returned: %m, %s, %s, %xqq", (char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value); | 80 | bb_error_msg("ioctl returned: %m, %s, %s, %xqq", (char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value); |
81 | } | 81 | } |
82 | else { | 82 | else { |
83 | write(1,(void*)&ke.kb_value,2); | 83 | write(1,(void*)&ke.kb_value,2); |
84 | } | 84 | } |
85 | 85 | ||
86 | } | 86 | } |
87 | } | 87 | } |
88 | } | 88 | } |
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 5b2f31abc..849d747a6 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -75,7 +75,7 @@ int loadkmap_main(int argc, char **argv) | |||
75 | } | 75 | } |
76 | } | 76 | } |
77 | 77 | ||
78 | /* Don't bother to close files. Exit does that | 78 | /* Don't bother to close files. Exit does that |
79 | * automagically, so we can save a few bytes */ | 79 | * automagically, so we can save a few bytes */ |
80 | /* close(fd); */ | 80 | /* close(fd); */ |
81 | return EXIT_SUCCESS; | 81 | return EXIT_SUCCESS; |
diff --git a/console-tools/openvt.c b/console-tools/openvt.c index b0db33b33..5f244579c 100644 --- a/console-tools/openvt.c +++ b/console-tools/openvt.c | |||
@@ -56,7 +56,7 @@ int openvt_main(int argc, char **argv) | |||
56 | if (setsid() < 0) { | 56 | if (setsid() < 0) { |
57 | #endif | 57 | #endif |
58 | 58 | ||
59 | bb_perror_msg_and_die("Unable to set new session"); | 59 | bb_perror_msg_and_die("Unable to set new session"); |
60 | } | 60 | } |
61 | close(0); /* so that new vt becomes stdin */ | 61 | close(0); /* so that new vt becomes stdin */ |
62 | 62 | ||
diff --git a/console-tools/reset.c b/console-tools/reset.c index 3f9ae984d..9d38e7a28 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c | |||
@@ -2,7 +2,7 @@ | |||
2 | /* | 2 | /* |
3 | * Mini reset implementation for busybox | 3 | * Mini reset implementation for busybox |
4 | * | 4 | * |
5 | * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> | 5 | * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> |
6 | * Written by Erik Andersen and Kent Robotti <robotti@metconnect.com> | 6 | * Written by Erik Andersen and Kent Robotti <robotti@metconnect.com> |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index 0a5366be9..169d0bb0a 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c | |||
@@ -35,7 +35,7 @@ struct kbkeycode { | |||
35 | }; | 35 | }; |
36 | static const int KDSETKEYCODE = 0x4B4D; /* write kernel keycode table entry */ | 36 | static const int KDSETKEYCODE = 0x4B4D; /* write kernel keycode table entry */ |
37 | 37 | ||
38 | extern int | 38 | extern int |
39 | setkeycodes_main(int argc, char** argv) | 39 | setkeycodes_main(int argc, char** argv) |
40 | { | 40 | { |
41 | char *ep; | 41 | char *ep; |
@@ -45,7 +45,7 @@ setkeycodes_main(int argc, char** argv) | |||
45 | if (argc % 2 != 1 || argc < 2) { | 45 | if (argc % 2 != 1 || argc < 2) { |
46 | bb_show_usage(); | 46 | bb_show_usage(); |
47 | } | 47 | } |
48 | 48 | ||
49 | fd = get_console_fd(); | 49 | fd = get_console_fd(); |
50 | 50 | ||
51 | while (argc > 2) { | 51 | while (argc > 2) { |