On Thu, Mar 03, 2016 at 06:11:39PM +0100, Michal Privoznik wrote:
These functions are going to be reused very shortly. So instead
of duplicating the code, lets move them into utils module.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
po/POTFILES.in | 1 +
src/Makefile.am | 1 +
src/libvirt_private.syms | 6 +
src/network/leaseshelper.c | 271 +---------------------------------------
src/util/virlease.c | 304 +++++++++++++++++++++++++++++++++++++++++++++
src/util/virlease.h | 44 +++++++
6 files changed, 357 insertions(+), 270 deletions(-)
create mode 100644 src/util/virlease.c
create mode 100644 src/util/virlease.h
diff --git a/src/network/leaseshelper.c b/src/network/leaseshelper.c
index 55ddd58..94a6163 100644
--- a/src/network/leaseshelper.c
+++ b/src/network/leaseshelper.c
@@ -28,34 +28,18 @@
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
-#include <sys/stat.h>
-#include "virutil.h"
#include "virthread.h"
#include "virfile.h"
#include "virpidfile.h"
-#include "virbuffer.h"
#include "virstring.h"
#include "virerror.h"
#include "viralloc.h"
-#include "virjson.h"
Keep this ^^ here, it's used in this file. ACK with that.