]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
casper: convert macros to inline functions
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Tue, 12 Jan 2021 18:38:10 +0000 (19:38 +0100)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Tue, 12 Jan 2021 18:40:45 +0000 (19:40 +0100)
commitd2ceee38ca26d8ea48b8dfd9018636eadd41fbc4
tree76c855d177a9354c0f5190dbe6bff8d7a36b7199
parent6e5baec33c1032f4fbf713d601a34b4658b918a2
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.

I omitted this file in: 8c121177f063a187534dcd475b136c34474802cd
lib/libcasper/libcasper/libcasper.h