chiark / gitweb /
logind: make VT numbers unsigned
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 28 Nov 2013 16:05:34 +0000 (17:05 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 28 Nov 2013 16:38:16 +0000 (17:38 +0100)
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.


No differences found