diff options
author | Tiago Vignatti <tiago.vignatti@intel.com> | 2011-11-21 14:55:23 +0200 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@intel.com> | 2011-11-21 18:07:18 +0200 |
commit | 280b8a6a3b1fe3cd300997c1a757973e03b0d672 (patch) | |
tree | 4b0b7ee9b9b288e4a5796d6a884a95a3ee3dbe28 | |
parent | 8b568806aa0576d6d6aa3ce4e90b2f04a4a1f32a (diff) |
tty: fix command line parsing
revert typo from evdev commit 8b568806.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
-rw-r--r-- | compositor/tty.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compositor/tty.c b/compositor/tty.c index 4989500e..5ed921ca 100644 --- a/compositor/tty.c +++ b/compositor/tty.c @@ -103,7 +103,7 @@ tty_create(struct wlsc_compositor *compositor, tty_vt_func_t vt_func, if (tty == NULL) return NULL; - snprintf(filename, sizeof filename, "/dev/tty0"); + snprintf(filename, sizeof filename, "/dev/tty%d", tty_nr); fprintf(stderr, "compositor: using %s\n", filename); memset(tty, 0, sizeof *tty); |