[lxc-devel] [lxc/master] remove the unused macro

0x0916 on Github lxc-bot at linuxcontainers.org
Sun Jul 2 14:19:30 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 343 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170702/2cd117a1/attachment.bin>
-------------- next part --------------
From 157ad8d409691d43a27b94c4d7b44f21c410833e Mon Sep 17 00:00:00 2001
From: 0x0916 <w at laoqinren.net>
Date: Sun, 2 Jul 2017 19:45:41 +0800
Subject: [PATCH] remove the unused macro

Signed-off-by: Long Wang <w at laoqinren.net>
---
 src/lxc/lxclock.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/lxc/lxclock.c b/src/lxc/lxclock.c
index e9e95f7a0..393eec0a9 100644
--- a/src/lxc/lxclock.c
+++ b/src/lxc/lxclock.c
@@ -39,11 +39,6 @@
 
 #define MAX_STACKDEPTH 25
 
-#define OFLAG (O_CREAT | O_RDWR)
-#define SEMMODE 0660
-#define SEMVALUE 1
-#define SEMVALUE_LOCKED 0
-
 lxc_log_define(lxc_lock, lxc);
 
 #ifdef MUTEX_DEBUGGING
@@ -65,7 +60,7 @@ static inline void dump_stacktrace(void)
 	for (i = 0; i < size; i++)
 		fprintf(stderr, "\t\t%s\n", strings[i]);
 
-	free (strings);
+	free(strings);
 }
 #else
 static pthread_mutex_t thread_mutex = PTHREAD_MUTEX_INITIALIZER;


More information about the lxc-devel mailing list