From: David Herrmann Date: Thu, 28 Nov 2013 16:05:34 +0000 (+0100) Subject: logind: make VT numbers unsigned X-Git-Tag: v209~1248 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=92bd5ff3a062c3f9475b9d9d39b9335bfeb7705e;hp=92bd5ff3a062c3f9475b9d9d39b9335bfeb7705e 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. ---