]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
Move array implementation to shared directory
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 3 Oct 2014 03:22:36 +0000 (00:22 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 3 Oct 2014 03:33:25 +0000 (00:33 -0300)
Makefile.am
libkmod/docs/Makefile.am
shared/array.c [moved from libkmod/libkmod-array.c with 99% similarity]
shared/array.h [moved from libkmod/libkmod-array.h with 96% similarity]
tools/depmod.c
tools/modprobe.c

index 7e063ff1b9d7860d0b0d8c31857757f858417fa9..7f65e315edca9e7c3d7c897e3a55d2228e969508 100644 (file)
@@ -45,13 +45,13 @@ LIBKMOD_AGE=2
 noinst_LTLIBRARIES = libkmod/libkmod-util.la
 libkmod_libkmod_util_la_SOURCES = \
        shared/macro.h \
-       shared/missing.h\
+       shared/missing.h \
+       shared/array.c \
+       shared/array.h \
        shared/util.c \
        shared/util.h \
        libkmod/libkmod-hash.c \
        libkmod/libkmod-hash.h \
-       libkmod/libkmod-array.c \
-       libkmod/libkmod-array.h \
        libkmod/libkmod-util.c \
        libkmod/libkmod-util.h
 
index 673c93b115690f4606b8d3a1d8dd518ee5dd3757..1fd6b900c8adc0d43b50403e4e7f772588bd899a 100644 (file)
@@ -22,7 +22,6 @@ CFILE_GLOB = $(top_srcdir)/libkmod/libkmod.c $(top_srcdir)/libkmod/libkmod-modul
 
 IGNORE_HFILES = libkmod-internal.h \
                libkmod-util.h \
-               libkmod-array.h \
                libkmod-hash.h \
                libkmod-index.h
 
similarity index 99%
rename from libkmod/libkmod-array.c
rename to shared/array.c
index 1082debf983ef0045873be49d8504d0996e7a10d..b37e54e0fecc02ba65c0715f68d0a2679f224a85 100644 (file)
@@ -18,8 +18,9 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
+#include <shared/array.h>
+
 #include "libkmod.h"
-#include "libkmod-array.h"
 
 #include <assert.h>
 #include <stdlib.h>
similarity index 96%
rename from libkmod/libkmod-array.h
rename to shared/array.h
index dd2ba5525f2331a09403ea139b6efe6345d84889..b88482fe4f9097954d5eada3fff14407f33aba93 100644 (file)
@@ -1,5 +1,7 @@
 #pragma once
 
+#include <stddef.h>
+
 /*
  * Declaration of struct array is in header because we may want to embed the
  * structure into another, so we need to know its size
index 274d020aae931b1b0b15f16bb0c9c5632174f855..e1e08f6713c394e389a4abceeb1e34fc8cb19814 100644 (file)
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 #include "libkmod.h"
-#include "libkmod-array.h"
 #include "libkmod-hash.h"
 #include "libkmod-util.h"
 
+#include <shared/array.h>
 #include <shared/macro.h>
 #include <shared/util.h>
 
index eb3a36b7daf9efc90f2a3ca1826f9012916fb982..57992714e2a8ccd0c36d75deb9e8632bf0dfc5e7 100644 (file)
@@ -32,7 +32,8 @@
 #include <limits.h>
 
 #include "libkmod.h"
-#include "libkmod-array.h"
+
+#include <shared/array.h>
 #include <shared/macro.h>
 
 #include "kmod.h"