[PATCH] libmount: do not use pointer as an integer value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix couple "initialization of ‘long int’ from ‘void *’ makes integer from
pointer without a cast" warnings.

Signed-off-by: Sami Kerola <kerolasa@xxxxxx>
---
 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 0ba78bed0..e9891241d 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 e3185065e..5fce90aef 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.28.0




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux