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/rpc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/rpc.c') 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 ) { -- cgit v1.2.3-55-g7522