pstree: Add extern to "current" declaration

Submitted by Pavel Emelianov on May 26, 2017, 3:39 p.m.

Details

Message ID d76aa3bd-0f65-06f0-1ae7-29cc540644d1@virtuozzo.com
State Accepted
Series "pstree: Add extern to "current" declaration"
Headers show

Commit Message

Pavel Emelianov May 26, 2017, 3:39 p.m.
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
---
 criu/include/pstree.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/criu/include/pstree.h b/criu/include/pstree.h
index 892a1cd..7df92db 100644
--- a/criu/include/pstree.h
+++ b/criu/include/pstree.h
@@ -45,7 +45,7 @@  enum {
 };
 #define FDS_EVENT (1 << FDS_EVENT_BIT)
 
-struct pstree_item *current;
+extern struct pstree_item *current;
 
 struct rst_info;
 /* See alloc_pstree_item() for details */

Comments

Andrey Vagin June 3, 2017, 1:40 a.m.
Applied, thanks!
On Fri, May 26, 2017 at 06:39:57PM +0300, Pavel Emelyanov wrote:
> 
> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
> ---
>  criu/include/pstree.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/criu/include/pstree.h b/criu/include/pstree.h
> index 892a1cd..7df92db 100644
> --- a/criu/include/pstree.h
> +++ b/criu/include/pstree.h
> @@ -45,7 +45,7 @@ enum {
>  };
>  #define FDS_EVENT (1 << FDS_EVENT_BIT)
>  
> -struct pstree_item *current;
> +extern struct pstree_item *current;
>  
>  struct rst_info;
>  /* See alloc_pstree_item() for details */
> -- 
> 2.1.4
> _______________________________________________
> CRIU mailing list
> CRIU@openvz.org
> https://lists.openvz.org/mailman/listinfo/criu