summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2013-10-27 13:53:34 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2013-10-28 10:44:38 +1000
commit014101d157fb7eb54c79fecc424b53ca95f582bc (patch)
treec92f890146f8a04c8dddcec0898feabcbf520b81
parentb8f4e7065566512a123c4957ab432cad3e7c688e (diff)
Whitespace fixes.
Replace <SPACE><TAB> with <TAB>. Remove whitespace at end-of-line. Signed-off-by: Thomas Klausner <wiz@NetBSD.org> Reviewed-by: Matthieu Herrb <matthieu@herrb.eu> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/bsd_kbd.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/bsd_kbd.c b/src/bsd_kbd.c
index 2eb7885..284833d 100644
--- a/src/bsd_kbd.c
+++ b/src/bsd_kbd.c
@@ -69,7 +69,7 @@ int KbdInit(InputInfoPtr pInfo, int what)
#if defined WSCONS_SUPPORT
case WSCONS:
#endif
- tcgetattr(pInfo->fd, &(priv->kbdtty));
+ tcgetattr(pInfo->fd, &(priv->kbdtty));
#endif
break;
}
@@ -223,7 +223,7 @@ KbdOn(InputInfoPtr pInfo, int what)
switch (pKbd->consType) {
#ifdef WSCONS_SUPPORT
case WSCONS:
- if ((pKbd->wsKbdDev[0] != 0) && (pInfo->fd == -1)) {
+ if ((pKbd->wsKbdDev[0] != 0) && (pInfo->fd == -1)) {
xf86Msg(X_INFO, "opening %s\n", pKbd->wsKbdDev);
pInfo->fd = open(pKbd->wsKbdDev, O_RDONLY | O_NONBLOCK | O_EXCL);
if (pInfo->fd == -1) {
@@ -275,15 +275,15 @@ KbdOff(InputInfoPtr pInfo, int what)
#ifdef WSCONS_SUPPORT
case WSCONS:
if ((pKbd->wsKbdDev[0] != 0) && (pInfo->fd != -1)) {
- xf86Msg(X_INFO, "closing %s\n", pKbd->wsKbdDev);
- /* need to close the fd while we're gone */
- close(pInfo->fd);
- pInfo->fd = -1;
+ xf86Msg(X_INFO, "closing %s\n", pKbd->wsKbdDev);
+ /* need to close the fd while we're gone */
+ close(pInfo->fd);
+ pInfo->fd = -1;
}
break;
#endif
}
- }
+ }
return Success;
}
@@ -296,7 +296,7 @@ SoundBell(InputInfoPtr pInfo, int loudness, int pitch, int duration)
#endif
if (loudness && pitch) {
- switch (pKbd->consType) {
+ switch (pKbd->consType) {
#ifdef PCCONS_SUPPORT
case PCCONS:
{ int data[2];
@@ -389,7 +389,7 @@ OpenKeyboard(InputInfoPtr pInfo)
}
switch (prot) {
- case PROT_STD:
+ case PROT_STD:
pInfo->read_input = stdReadInput;
break;
#ifdef WSCONS_SUPPORT