From 1b673a083abc59a7505ffc90d030ef8cb1712018 Mon Sep 17 00:00:00 2001 From: Andre Noll <maan@tuebingen.mpg.de> Date: Sun, 8 Jun 2025 23:18:22 +0200 Subject: [PATCH] vss: Make vss_next() and vss_repos() static. Unlike vss_playing(), vss_paused() and vss_stopped(), these are only called from within vss.c. --- vss.c | 18 ++++-------------- vss.h | 2 -- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/vss.c b/vss.c index 827267d3..2a372815 100644 --- a/vss.c +++ b/vss.c @@ -749,24 +749,14 @@ bool vss_playing(void) return mmd->new_vss_status_flags & VSS_PLAYING; } -/** - * Check if the \a N (next) status flag is set. - * - * \return Greater than zero if set, zero if not. - * - */ -bool vss_next(void) +/* Check whether the N (next) status flag is set. */ +static bool vss_next(void) { return mmd->new_vss_status_flags & VSS_NEXT; } -/** - * Check if a reposition request is pending. - * - * \return Greater than zero if true, zero otherwise. - * - */ -bool vss_repos(void) +/* Check whether a reposition request is pending. */ +static bool vss_repos(void) { return mmd->new_vss_status_flags & VSS_REPOS; } diff --git a/vss.h b/vss.h index 611a294f..c0d7456a 100644 --- a/vss.h +++ b/vss.h @@ -4,8 +4,6 @@ void vss_init(int afs_socket, struct sched *s); bool vss_playing(void); -bool vss_next(void); -bool vss_repos(void); bool vss_paused(void); bool vss_stopped(void); struct timeval *vss_chunk_time(void); -- 2.39.5