summaryrefslogtreecommitdiffstats
path: root/src/rpc.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/rpc.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/rpc.c')
-rw-r--r--src/rpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc.c b/src/rpc.c
index 823bcca..40c2b0d 100644
--- a/src/rpc.c
+++ b/src/rpc.c
@@ -32,7 +32,7 @@ _Static_assert( sizeof(rpcPipe) == ( sizeof(int) * 2 ), "Structsize mismatch" );
static void handleClient( int fd, struct ucred *user );
-int rpcOpen( void )
+int rpc_open( void )
{
int fd = socket( AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0 );
if ( fd == -1 ) {
@@ -67,7 +67,7 @@ int rpcOpen( void )
return fd;
}
-void rpcWait( int listenFd, int seconds )
+void rpc_wait( int listenFd, int seconds )
{
struct pollfd pd[2] = {
{ .fd = listenFd, .events = POLLIN | POLLHUP | POLLRDHUP },
@@ -78,7 +78,7 @@ void rpcWait( int listenFd, int seconds )
}
}
-void rpcHandle( int listenFd )
+void rpc_handle( int listenFd )
{
int fd;
while ( ( fd = accept( listenFd, NULL, NULL ) ) != -1 ) {