Hi

Continuing the cleanups.

- Lauri
>From 85a17c77b7b387b80d59b214e7529436b2e95a7b Mon Sep 17 00:00:00 2001
From: Lauri Kasanen <[email protected]>
Date: Sun, 17 Jun 2012 17:09:46 +0300
Subject: [PATCH] iov: Mark _mk_iov_set_free as static (unused externally, and 
the _ prefix suggests it's meant to be private)


Signed-off-by: Lauri Kasanen <[email protected]>
---
 src/include/mk_iov.h |    2 --
 src/mk_iov.c         |   12 ++++++------
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/include/mk_iov.h b/src/include/mk_iov.h
index a3a7239..63d9ced 100644
--- a/src/include/mk_iov.h
+++ b/src/include/mk_iov.h
@@ -73,8 +73,6 @@ void mk_iov_free(struct mk_iov *mk_io);
 int _mk_iov_add(struct mk_iov *mk_io, char *buf, int len,
                 mk_pointer sep, int free, int idx);
 
-void _mk_iov_set_free(struct mk_iov *mk_io, char *buf);
-
 int mk_iov_set_entry(struct mk_iov *mk_io, char *buf, int len,
                      int free, int idx);
 
diff --git a/src/mk_iov.c b/src/mk_iov.c
index ea35629..14960b8 100644
--- a/src/mk_iov.c
+++ b/src/mk_iov.c
@@ -43,6 +43,12 @@ mk_pointer mk_iov_slash;
 mk_pointer mk_iov_none;
 mk_pointer mk_iov_equal;
 
+static void _mk_iov_set_free(struct mk_iov *mk_io, char *buf)
+{
+    mk_io->buf_to_free[mk_io->buf_idx] = (char *) buf;
+    mk_io->buf_idx++;
+}
+
 inline int mk_iov_add_entry(struct mk_iov *mk_io, char *buf, int len,
                             mk_pointer sep, int free)
 {
@@ -141,12 +147,6 @@ int mk_iov_set_entry(struct mk_iov *mk_io, char *buf, int 
len,
     return 0;
 }
 
-void _mk_iov_set_free(struct mk_iov *mk_io, char *buf)
-{
-    mk_io->buf_to_free[mk_io->buf_idx] = (char *) buf;
-    mk_io->buf_idx++;
-}
-
 ssize_t mk_iov_send(int fd, struct mk_iov *mk_io)
 {
     ssize_t n = writev(fd, mk_io->io, mk_io->iov_idx);
-- 
1.7.2.1

_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to