util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sami Kerola <kerolasa@iki.fi>
To: util-linux@vger.kernel.org
Cc: Sami Kerola <kerolasa@iki.fi>
Subject: [PATCH] libmount: do not use pointer as an integer value
Date: Fri, 28 Aug 2020 20:59:57 +0100	[thread overview]
Message-ID: <20200828195957.24195-1-kerolasa@iki.fi> (raw)

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


             reply	other threads:[~2020-08-28 20:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-28 19:59 Sami Kerola [this message]
2020-09-02 10:08 ` [PATCH] libmount: do not use pointer as an integer value Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200828195957.24195-1-kerolasa@iki.fi \
    --to=kerolasa@iki.fi \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).