mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 10:50:37 +02:00
neocon.c: copyright update and whitespace cleanup
Now conforms to Linux kernel style.
This commit is contained in:
parent
7d0683b335
commit
f3e1f925c4
@ -2,7 +2,8 @@
|
||||
* neocon.c - An interface for changing tty devices
|
||||
*
|
||||
* Copyright (C) 2007, 2008 by OpenMoko, Inc.
|
||||
* Written by Werner Almesberger <werner@openmoko.org>
|
||||
* Copyright 2011 by Werner Almesberger
|
||||
* Written by Werner Almesberger <werner@almesberger.net>
|
||||
* All Rights Reserved
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
@ -235,8 +236,7 @@ static int copy(int in, int out, int from_user, int single)
|
||||
if (from_user) {
|
||||
if (scan(buffer, got))
|
||||
return 0;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (log)
|
||||
do_log(buffer, got);
|
||||
}
|
||||
@ -354,7 +354,8 @@ int main(int argc, char *const *argv)
|
||||
if (fd > 0) {
|
||||
char buf[1024]; /* enough :-) */
|
||||
|
||||
sprintf(buf, "\r\r[Open %s]\r\n", ttys[curr_tty]);
|
||||
sprintf(buf, "\r\r[Open %s]\r\n",
|
||||
ttys[curr_tty]);
|
||||
write_string(buf);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user