summaryrefslogtreecommitdiffstats
path: root/src/warn.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-12 16:35:27 +0200
committerSimon Rettberg2019-06-12 16:35:27 +0200
commite21969bf3e0a1e5d88e1200a36903da52e85107d (patch)
tree71881c15bcd42b9e4e141b6eea4f52e9561a8801 /src/warn.c
parentAdd RPC method "warn" to show messge to users (diff)
downloadidle-daemon-e21969bf3e0a1e5d88e1200a36903da52e85107d.tar.gz
idle-daemon-e21969bf3e0a1e5d88e1200a36903da52e85107d.tar.xz
idle-daemon-e21969bf3e0a1e5d88e1200a36903da52e85107d.zip
Slightly more consistent naming
Diffstat (limited to 'src/warn.c')
-rw-r--r--src/warn.c6
1 files changed, 3 insertions, 3 deletions
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 ) {