[lxc-devel] [lxc/master] Drop leftover references to lxc_strerror().

Jafaral on Github lxc-bot at linuxcontainers.org
Thu Oct 13 23:37:48 UTC 2016


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 516 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161013/632d143c/attachment.bin>
-------------- next part --------------
From 4c6f1e88e322a92acd7f74a58354eefbe7ea4985 Mon Sep 17 00:00:00 2001
From: Jafar Al-Gharaibeh <to.jafar at gmail.com>
Date: Thu, 13 Oct 2016 18:35:29 -0500
Subject: [PATCH] Drop leftover references to lxc_strerror().

lxc_strerror() was dropped long time ago, in 2009 to be exact.

Related commit:
https://github.com/lxc/lxc/commit/7cee8789514fb42d6a48d50b904e24284f5526e3

Signed-off-by: Jafar Al-Gharaibeh <to.jafar at gmail.com>
---
 src/lxc/arguments.h | 2 --
 src/lxc/lxc.h       | 8 --------
 2 files changed, 10 deletions(-)

diff --git a/src/lxc/arguments.h b/src/lxc/arguments.h
index 39bedf5..7833748 100644
--- a/src/lxc/arguments.h
+++ b/src/lxc/arguments.h
@@ -164,8 +164,6 @@ extern int lxc_arguments_parse(struct lxc_arguments *args,
 
 extern int lxc_arguments_str_to_int(struct lxc_arguments *args, const char *str);
 
-extern const char *lxc_strerror(int errnum);
-
 #define lxc_error(arg, fmt, args...) if (!(arg)->quiet)			\
 	fprintf(stderr, "%s: " fmt "\n", (arg)->progname,  ## args)
 
diff --git a/src/lxc/lxc.h b/src/lxc/lxc.h
index a9fa80e..c6182d4 100644
--- a/src/lxc/lxc.h
+++ b/src/lxc/lxc.h
@@ -119,14 +119,6 @@ extern int lxc_cgroup_set(const char *filename, const char *value, const char *n
 extern int lxc_cgroup_get(const char *filename, char *value, size_t len, const char *name, const char *lxcpath);
 
 /*
- * Retrieve the error string associated with the error returned by
- * the function.
- * @error : the value of the error
- * Returns a string on success or NULL otherwise.
- */
-extern const char *lxc_strerror(int error);
-
-/*
  * Create and return a new lxccontainer struct.
  */
 extern struct lxc_container *lxc_container_new(const char *name, const char *configpath);


More information about the lxc-devel mailing list