diff options
author | Jan Safranek <jsafrane@redhat.com> | 2009-08-06 14:03:45 +0200 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-08-29 10:50:25 +0530 |
commit | 3a63b883e2317d0d62743e45f6331f92290f67ad (patch) | |
tree | ae39df24ccddeb5e6bd8cf5a1b2d5865a646d00e | |
parent | ba948c63f487789e8c3e8478c0edeb15ff716214 (diff) | |
download | libcg-3a63b883e2317d0d62743e45f6331f92290f67ad.tar.gz libcg-3a63b883e2317d0d62743e45f6331f92290f67ad.tar.xz libcg-3a63b883e2317d0d62743e45f6331f92290f67ad.zip |
Remove VERSION macro from api.c
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>
-rw-r--r-- | src/api.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -51,12 +51,6 @@ #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; |