From 4ba92170fcc18d5c194f3bc18ea96d36adf9d9ce Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 14 Feb 2021 14:15:53 -0800 Subject: drm_fb,sdl_fb: staticify all functions Some omissions, nothing in these is public outside of what's explicitly plumbed out via fb_ops_t. --- src/drm_fb.c | 6 +++--- src/sdl_fb.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/drm_fb.c b/src/drm_fb.c index cfaae29..67e37bd 100644 --- a/src/drm_fb.c +++ b/src/drm_fb.c @@ -272,7 +272,7 @@ static setting_desc_t * mode_desc_generator(void *setup_context) /* setup is called repeatedly as settings is constructed, until 0 is returned. */ /* a negative value is returned on error */ /* positive value indicates another setting is needed, described in next_setting */ -int drm_fb_setup(const settings_t *settings, setting_desc_t **next_setting) +static int drm_fb_setup(const settings_t *settings, setting_desc_t **next_setting) { drm_fb_setup_t context = {}; setting_desc_generator_t generators[] = { @@ -324,7 +324,7 @@ static drmModeModeInfo * lookup_mode(drmModeConnector *connector, const char *mo /* prepare the drm context for use with the supplied settings */ -void * drm_fb_init(const settings_t *settings) +static void * drm_fb_init(const settings_t *settings) { drm_fb_t *c; const char *dev; @@ -390,7 +390,7 @@ _err: } -void drm_fb_shutdown(void *context) +static void drm_fb_shutdown(void *context) { drm_fb_t *c = context; diff --git a/src/sdl_fb.c b/src/sdl_fb.c index 6ba69e1..dfb319a 100644 --- a/src/sdl_fb.c +++ b/src/sdl_fb.c @@ -25,7 +25,7 @@ struct sdl_fb_page_t { }; -int sdl_fb_setup(const settings_t *settings, setting_desc_t **next_setting) +static int sdl_fb_setup(const settings_t *settings, setting_desc_t **next_setting) { const char *fullscreen_values[] = { "off", @@ -87,7 +87,7 @@ int sdl_fb_setup(const settings_t *settings, setting_desc_t **next_setting) } -void * sdl_fb_init(const settings_t *settings) +static void * sdl_fb_init(const settings_t *settings) { const char *fullscreen; const char *size; @@ -138,7 +138,7 @@ void * sdl_fb_init(const settings_t *settings) } -void sdl_fb_shutdown(void *context) +static void sdl_fb_shutdown(void *context) { sdl_fb_t *c = context; -- cgit v1.2.3