]> git.baikalelectronics.ru Git - kernel.git/commit
vt: declare xy for get/putconsxy properly
authorJiri Slaby <jslaby@suse.cz>
Tue, 18 Aug 2020 08:56:52 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 11:45:20 +0000 (13:45 +0200)
commit1f4fe2884f55264ca5014fc852dd9cc713771eac
tree23c7c5fbda4bc87624370612ae81e0dc578e69ba
parent026e5b5a9362ce8a854b5fb3f1b02fb2286d987a
vt: declare xy for get/putconsxy properly

That is:
1) call the parameter 'xy' to denote what it really is, not generic 'p'
2) tell the compiler and users that we expect an array:
   * with at least 2 chars (static 2)
   * which we don't modify in putconsxy (const)

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200818085706.12163-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vt.c
include/linux/selection.h