projects
/
nbd.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix inline usage
[nbd.git]
/
nbd-server.c
diff --git
a/nbd-server.c
b/nbd-server.c
index
ec5b84f
..
5cace72
100644
(file)
--- a/
nbd-server.c
+++ b/
nbd-server.c
@@
-320,7
+320,7
@@
int authorized_client(CLIENT *opts) {
* @param buf a buffer
* @param len the number of bytes to be read
**/
* @param buf a buffer
* @param len the number of bytes to be read
**/
-inline void readit(int f, void *buf, size_t len) {
+static inline void readit(int f, void *buf, size_t len) {
ssize_t res;
while (len > 0) {
DEBUG("*");
ssize_t res;
while (len > 0) {
DEBUG("*");
@@
-342,7
+342,7
@@
inline void readit(int f, void *buf, size_t len) {
* @param buf a buffer containing data
* @param len the number of bytes to be written
**/
* @param buf a buffer containing data
* @param len the number of bytes to be written
**/
-inline void writeit(int f, void *buf, size_t len) {
+static inline void writeit(int f, void *buf, size_t len) {
ssize_t res;
while (len > 0) {
DEBUG("+");
ssize_t res;
while (len > 0) {
DEBUG("+");