]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
casper: convert macros to inline functions
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Mon, 4 Jan 2021 19:50:58 +0000 (20:50 +0100)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Mon, 4 Jan 2021 19:55:35 +0000 (20:55 +0100)
commit8c121177f063a187534dcd475b136c34474802cd
tree7ffbcee7c0c616f47d65ac1cabea05971af7f080
parent381073282961af9d11d6225fcf9dfdf650915acf
casper: convert macros to inline functions

In libcasper, the first argument to the function is a structure that
represents a connection to Casper. On systems without Casper, macros
are used to interpose the Casper functions to standard libc ones.
This may cause errors/warnings that the variable is not used.
With the inline function, there is no such problem.
lib/libcasper/services/cap_pwd/cap_pwd.h
lib/libcasper/services/cap_sysctl/cap_sysctl.h