From: Sami Kerola Date: Fri, 28 Aug 2020 19:59:57 +0000 (+0100) Subject: libmount: do not use pointer as an integer value X-Git-Tag: v2.37-rc1~497 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4987e082bb551c2d28145b578fe4a620dcf9e52;p=thirdparty%2Futil-linux.git libmount: do not use pointer as an integer value Fix couple "initialization of ‘long int’ from ‘void *’ makes integer from pointer without a cast" warnings. Signed-off-by: Sami Kerola --- 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*/