From e21969bf3e0a1e5d88e1200a36903da52e85107d Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 12 Jun 2019 16:35:27 +0200 Subject: Slightly more consistent naming --- src/warn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/warn.c') diff --git a/src/warn.c b/src/warn.c index 7b1ec8e..c02829e 100644 --- a/src/warn.c +++ b/src/warn.c @@ -40,7 +40,7 @@ static struct action actions[WARN_ENUM_END] = { }, }; -void warnUser( struct user *usr, enum Warning what, int seconds ) +void warn_showDefaultWarning( struct user *usr, enum Warning what, int seconds ) { const time_t NOW = now(); if ( what < 0 || what >= WARN_ENUM_END ) @@ -57,10 +57,10 @@ void warnUser( struct user *usr, enum Warning what, int seconds ) seconds %= 60; char buffer[1000]; snprintf( buffer, sizeof(buffer), warning->message, minutes, seconds, minutes, seconds ); - showWarning( usr, warning->title, buffer ); + warn_showCustomWarning( usr, warning->title, buffer ); } -void showWarning( const struct user *usr, const char *title, const char *body ) +void warn_showCustomWarning( const struct user *usr, const char *title, const char *body ) { // Text or X11 warning if ( *usr->display ) { -- cgit v1.2.3-55-g7522