summaryrefslogtreecommitdiff
path: root/src/login/logind.h
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2013-11-28 17:05:34 +0100
committerDavid Herrmann <dh.herrmann@gmail.com>2013-11-28 17:38:16 +0100
commit92bd5ff3a062c3f9475b9d9d39b9335bfeb7705e (patch)
tree0769b098958778286b006da515dca801c64e30d3 /src/login/logind.h
parent92fe133abf2de889659464ae8affd1db1710f72e (diff)
logind: make VT numbers unsigned
Fix the whole code to use "unsigned int" for vtnr. 0 is an invalid vtnr so we don't need negative numbers at all. Note that most code already assumes it's unsigned so in case there's a negative vtnr, our code may, under special circumstances, silently break. So this patch makes sure all sources of vtnrs verify the validity. Also note that the dbus api already uses unsigned ints.
Diffstat (limited to 'src/login/logind.h')
-rw-r--r--src/login/logind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/logind.h b/src/login/logind.h
index 814964ff9d..b84137c78b 100644
--- a/src/login/logind.h
+++ b/src/login/logind.h
@@ -137,7 +137,7 @@ int manager_process_button_device(Manager *m, struct udev_device *d);
int manager_startup(Manager *m);
int manager_run(Manager *m);
-int manager_spawn_autovt(Manager *m, int vtnr);
+int manager_spawn_autovt(Manager *m, unsigned int vtnr);
void manager_gc(Manager *m, bool drop_not_started);