util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libmount: do not use pointer as an integer value
@ 2020-08-28 19:59 Sami Kerola
  2020-09-02 10:08 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Sami Kerola @ 2020-08-28 19:59 UTC (permalink / raw)
  To: util-linux; +Cc: Sami Kerola

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

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libmount: do not use pointer as an integer value
  2020-08-28 19:59 [PATCH] libmount: do not use pointer as an integer value Sami Kerola
@ 2020-09-02 10:08 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2020-09-02 10:08 UTC (permalink / raw)
  To: Sami Kerola; +Cc: util-linux

On Fri, Aug 28, 2020 at 08:59:57PM +0100, Sami Kerola wrote:
>  libmount/python/fs.c  | 2 +-
>  libmount/python/tab.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Applied, thanks.   

... the python binding needs a lot of our love,
unfortunately, I have no time for this stuff.

  Karel

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-02 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-28 19:59 [PATCH] libmount: do not use pointer as an integer value Sami Kerola
2020-09-02 10:08 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).