[lxc-devel] [python2-lxc/master] mark some internal functions static

benjaminp on Github lxc-bot at linuxcontainers.org
Thu Nov 30 07:40:12 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 410 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171130/089c3f96/attachment.bin>
-------------- next part --------------
From 9f86a0b92515a02e98c267caab5ee9623cdd8088 Mon Sep 17 00:00:00 2001
From: Benjamin Peterson <benjamin at python.org>
Date: Wed, 29 Nov 2017 23:38:19 -0800
Subject: [PATCH] mark some internal functions static

---
 lxc.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lxc.c b/lxc.c
index 1cc43c9..06e63e9 100644
--- a/lxc.c
+++ b/lxc.c
@@ -47,7 +47,8 @@ static int PyUnicode_FSConverter(PyObject *unicode, void *result)
 
 /* Helper functions */
 
-int lxc_wait_for_pid_status(pid_t pid)
+static int
+lxc_wait_for_pid_status(pid_t pid)
 {
     int status, ret;
 
@@ -63,7 +64,7 @@ int lxc_wait_for_pid_status(pid_t pid)
     return status;
 }
 
-char**
+static char**
 convert_tuple_to_char_pointer_array(PyObject *argv) {
     int argc;
     int i, j;
@@ -257,7 +258,8 @@ static lxc_attach_options_t *lxc_attach_parse_options(PyObject *kwds)
     return options;
 }
 
-void lxc_attach_free_options(lxc_attach_options_t *options)
+static void
+lxc_attach_free_options(lxc_attach_options_t *options)
 {
     int i;
     if (!options)


More information about the lxc-devel mailing list