From 7aa14de21f5521da75d8e42cbfc36a3300439cbc Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 6 Mar 2011 02:27:52 +0100 Subject: Use macro instead of hardcoded value * console/display.c (user_create): Use CONS_VERSION_MAJ_SHIFT macro instead of hardcoded value 16. --- console/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console') diff --git a/console/display.c b/console/display.c index 0030a72c..6b933144 100644 --- a/console/display.c +++ b/console/display.c @@ -788,7 +788,7 @@ user_create (display_t display, uint32_t width, uint32_t height, user = display->user; user->magic = CONS_MAGIC; - user->version = CONS_VERSION_MAJ << 16 | CONS_VERSION_AGE; + user->version = CONS_VERSION_MAJ << CONS_VERSION_MAJ_SHIFT | CONS_VERSION_AGE; user->changes.buffer = offsetof (struct cons_display, changes._buffer) / sizeof (uint32_t); user->changes.length = _CONS_CHANGES_LENGTH; -- cgit v1.2.3