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/rpc.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/rpc.c')
-rw-r--r-- | src/rpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 ) { |