Commit graph

18 commits

Author SHA1 Message Date
Thomas Weißschuh
6f052eaa1e libmount (python) : simplify struct initialization
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
2023-06-03 10:25:03 +02:00
Karel Zak
f823700f61 pylibmount: PyEval_Call* is deprecate, use PyObject_Call*
Signed-off-by: Karel Zak <kzak@redhat.com>
2021-03-15 16:37:47 +01:00
Sami Kerola
f4987e082b 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 <kerolasa@iki.fi>
2020-09-02 12:06:18 +02:00
Rosen Penev
042f62dfc5
[clang-tidy] do not use else after return
Found with readability-else-after-return

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-20 13:20:59 -07:00
Sami Kerola
110260830d docs: fix typos [codespell]
Reference: https://github.com/codespell-project/codespell
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2019-02-18 13:22:43 +01:00
Sami Kerola
8791804065 misc: do not use plain 0 as NULL [smatch scan]
text-utils/tailf.c:69:21: warning: Using plain integer as NULL pointer

Since many 'struct option' has used zero as NULL make them more readable in
same go by reindenting, and using named argument requirements.

Reference: https://lwn.net/Articles/93577/
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2017-02-20 12:58:49 +01:00
Sebastian Rasmussen
9e93004171 misc: Fix various typos
Fix various typos in error messages, warnings, debug strings,
comments and names of static functions.

Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>
2016-05-31 23:40:21 +02:00
Sami Kerola
5d324c6b94 various: fix mixing declarations and code compiler warnings [smatch]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2013-10-08 15:47:59 +02:00
Ondrej Oprala
464074532c pylibmount: rewrite to be py2/py3 universal
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-09-20 12:48:53 +02:00
Karel Zak
b7e47ac1ac pylibmount: add debug messages
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-22 12:10:13 +02:00
Karel Zak
20b222ec5c pylibmount: use libmount reference counting
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-22 09:44:38 +02:00
Karel Zak
73d5b4ebdb pylibmount: remove unnecessary code
It's enough to call mnt_free_fs() to remove fs from the table.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20 17:52:47 +02:00
Karel Zak
c643ad4d81 pylibmount: coding style changes, don't touch Context() status
It's better to follow libmnt_context status than allow to play any
nasty games with this important variables in Python.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20 14:01:39 +02:00
Karel Zak
2d59ffa15a pylibmount: use only public libmount API in tab.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20 13:52:09 +02:00
Karel Zak
278b5be599 pylibmount: cleanup *_HELP strings formatting
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-20 12:07:24 +02:00
Karel Zak
5c7664f735 pylibmount: cleanup object names
Cxt -> Context
	Tab -> Table

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19 17:10:07 +02:00
Karel Zak
6b47d7f5c7 pylibmount: coding style changes in tab.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19 16:57:50 +02:00
Ondrej Oprala
813683a352 pylibmount: basic code
[kzak@redhat.com: - split to more patches
                  - split to more .c files]

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19 15:00:15 +02:00