diff options
author | Eric Anholt <eric@anholt.net> | 2018-05-07 16:46:15 -0700 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2018-05-08 11:59:28 -0400 |
commit | e1ccd0fa0e1081edf8a2c69ce6e8e3f67a4aecba (patch) | |
tree | 6c1a7cfd8caf8ce3b5e329be14ba84ab2ec73d6a /dix | |
parent | cf838f5ca81e0c967902b74fb1971bc6fac5c601 (diff) |
dix: Fix a warning about GetTimeInMillis return value in XFont2.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/dixfonts.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dix/dixfonts.c b/dix/dixfonts.c index cca92ed27..0ea8678bb 100644 --- a/dix/dixfonts.c +++ b/dix/dixfonts.c @@ -2015,6 +2015,11 @@ _remove_fs_handlers(FontPathElementPtr fpe, FontBlockHandlerProcPtr block_handle RemoveFontWakeup(fpe); } +static uint32_t wrap_time_in_millis(void) +{ + return GetTimeInMillis(); +} + static const xfont2_client_funcs_rec xfont2_client_funcs = { .version = XFONT2_CLIENT_FUNCS_VERSION, .client_auth_generation = _client_auth_generation, @@ -2025,7 +2030,7 @@ static const xfont2_client_funcs_rec xfont2_client_funcs = { .get_client_resolutions = get_client_resolutions, .get_default_point_size = get_default_point_size, .get_new_font_client_id = get_new_font_client_id, - .get_time_in_millis = GetTimeInMillis, + .get_time_in_millis = wrap_time_in_millis, .init_fs_handlers = _init_fs_handlers, .register_fpe_funcs = register_fpe_funcs, .remove_fs_handlers = _remove_fs_handlers, |