minor commit - removing tty_dev from global variables
This commit is contained in:
parent
538e7932c7
commit
e6775c120d
1 changed files with 1 additions and 2 deletions
|
@ -12,7 +12,6 @@
|
|||
/* Global variables used throughout the application */
|
||||
struct server_t server;
|
||||
struct client_t client; //TODO working with only 1 client, this can be expanded into a list
|
||||
struct tty_t tty_dev;
|
||||
|
||||
/* Prints help message. */
|
||||
static void usage() {
|
||||
|
@ -116,7 +115,7 @@ int main(int argc, char *argv[]) {
|
|||
//TODO this is a good place to create and start the TTY thread, use "tty_path" when opening device
|
||||
if (tty_open(&tty_dev) < 0) {
|
||||
fprintf(stderr, "[%s] error: opening of tty device at %s failed\n"
|
||||
"\t-> continuing in echo mode\n", NAME, tty_path);
|
||||
"\t\t-> continuing in echo mode\n", NAME, tty_path);
|
||||
//return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue