From f4987e082bb551c2d28145b578fe4a620dcf9e52 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Fri, 28 Aug 2020 20:59:57 +0100 Subject: [PATCH] libmount: do not use pointer as an integer value MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix couple "initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast" warnings. Signed-off-by: Sami Kerola --- libmount/python/fs.c | 2 +- libmount/python/tab.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libmount/python/fs.c b/libmount/python/fs.c index 0ba78bed08..e9891241d5 100644 --- a/libmount/python/fs.c +++ b/libmount/python/fs.c @@ -836,7 +836,7 @@ PyTypeObject FsType = { sizeof(FsObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ (destructor)Fs_destructor, /*tp_dealloc*/ - NULL, /*tp_print*/ + 0, /*tp_print*/ NULL, /*tp_getattr*/ NULL, /*tp_setattr*/ NULL, /*tp_compare*/ diff --git a/libmount/python/tab.c b/libmount/python/tab.c index e3185065ea..5fce90aef1 100644 --- a/libmount/python/tab.c +++ b/libmount/python/tab.c @@ -735,7 +735,7 @@ PyTypeObject TableType = { sizeof(TableObject), /*tp_basicsize*/ 0, /*tp_itemsize*/ (destructor)Table_destructor, /*tp_dealloc*/ - NULL, /*tp_print*/ + 0, /*tp_print*/ NULL, /*tp_getattr*/ NULL, /*tp_setattr*/ NULL, /*tp_compare*/ -- 2.47.3