diff options
author | Simon Rettberg | 2019-06-12 16:35:27 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-06-12 16:35:27 +0200 |
commit | e21969bf3e0a1e5d88e1200a36903da52e85107d (patch) | |
tree | 71881c15bcd42b9e4e141b6eea4f52e9561a8801 /src/warn.c | |
parent | Add RPC method "warn" to show messge to users (diff) | |
download | idle-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 ) { |