Commit graph

15 commits

Author SHA1 Message Date
Zac Medico
29b721bc9d pylibmount: NULL terminate kwlist in Context_init
Fixes a segfault observed with python3.6.
2017-06-07 17:25:12 -07: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
Karel Zak
ee312c654b docs: fix "behaviour" vs. "behavior"
Sometimes we use "behaviour" and "behavior" in the same text, let's
use "behavior" only everywhere.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1011068
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-06-06 09:49:35 +02:00
Karel Zak
21ca031559 pylibmount: make tab parsers more robust [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-10-01 17:15:08 +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
40e5013ce5 pylibmount: improve helps strings formatting
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-22 13:24:05 +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
6d5189376d pylibmount: remove Context_get_table()
It's too problematic and too low-level to support it Py binding.

Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-21 10:06:15 +02:00
Karel Zak
a4ac8f0385 pylibmount: cleanup cxt usage
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-21 10:02:19 +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
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
77733ec880 pylibmount: coding style changes in context.c
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-08-19 16:41:04 +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