mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-11-15 12:27:11 +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
|
* neocon.c - An interface for changing tty devices
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007, 2008 by OpenMoko, Inc.
|
* 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
|
* All Rights Reserved
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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 (from_user) {
|
||||||
if (scan(buffer, got))
|
if (scan(buffer, got))
|
||||||
return 0;
|
return 0;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
if (log)
|
if (log)
|
||||||
do_log(buffer, got);
|
do_log(buffer, got);
|
||||||
}
|
}
|
||||||
@ -354,7 +354,8 @@ int main(int argc, char *const *argv)
|
|||||||
if (fd > 0) {
|
if (fd > 0) {
|
||||||
char buf[1024]; /* enough :-) */
|
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);
|
write_string(buf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user