]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Remove VERSION macro from api.c
authorJan Safranek <jsafrane@redhat.com>
Thu, 6 Aug 2009 12:03:45 +0000 (14:03 +0200)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Sat, 29 Aug 2009 05:20:25 +0000 (10:50 +0530)
The macro and assosicated cg_version is not used anywhere and it generates
warning:
api.c:58:1: warning: "VERSION" redefined

Signed-off-by: Jan Safranek <jsafrane@redhat.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
src/api.c

index fef0e761f919a93b13b0c0fdf82497b667bfe72f..a0e1b9bab170cd25e1a7df57f43fcb9983cd6ea9 100644 (file)
--- a/src/api.c
+++ b/src/api.c
 #include <assert.h>
 #include <linux/un.h>
 
-#ifndef PACKAGE_VERSION
-#define PACKAGE_VERSION 0.01
-#endif
-
-#define VERSION(ver)   #ver
-
 /*
  * The errno which happend the last time (have to be thread specific)
  */
@@ -70,11 +64,6 @@ __thread char errtext[MAXLEN];
 /* Task command name length */
 #define TASK_COMM_LEN 16
 
-/*
- * Remember to bump this up for major API changes.
- */
-const static char cg_version[] = VERSION(PACKAGE_VERSION);
-
 struct cg_mount_table_s cg_mount_table[CG_CONTROLLER_MAX];
 static pthread_rwlock_t cg_mount_table_lock = PTHREAD_RWLOCK_INITIALIZER;