summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2015-03-30 01:38:11 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2015-03-30 01:38:11 +0200
commit95418690030cf77bc49001675094625ff65c4e50 (patch)
tree95bd4e470a3809a97ba8861ee420cb723727a1bf
parent6463feb2b58ac16cb12cfd325d9662c4a15e19ee (diff)
downloadsigrok-test-95418690030cf77bc49001675094625ff65c4e50.tar.gz
sigrok-test-95418690030cf77bc49001675094625ff65c4e50.zip
Minor cosmetics.
-rw-r--r--decoder/runtc.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/decoder/runtc.c b/decoder/runtc.c
index 05ddfd2..2d0d5e3 100644
--- a/decoder/runtc.c
+++ b/decoder/runtc.c
@@ -149,9 +149,11 @@ static void usage(char *msg)
}
-/* This is a neutered version of libsigrokdecode's py_str_as_str(). It
+/*
+ * This is a neutered version of libsigrokdecode's py_str_as_str(). It
* does no error checking, but then the only strings it processes are
- * generated by Python's repr(), so are known good. */
+ * generated by Python's repr(), so are known good.
+ */
static char *py_str_as_str(const PyObject *py_str)
{
PyObject *py_encstr;
@@ -435,8 +437,10 @@ static int run_testcase(char *infile, GSList *pdlist, struct output *op)
g_hash_table_destroy(channels);
}
- /* If this is not the first decoder in the list, stack it
- * on top of the previous one. */
+ /*
+ * If this is not the first decoder in the list, stack it
+ * on top of the previous one.
+ */
if (prev_di) {
if (srd_inst_stack(sess, prev_di, di) != SRD_OK) {
ERR("Failed to stack decoder instances.");
@@ -541,7 +545,7 @@ static struct cvg *get_mod_cov(PyObject *py_cov, char *module_name)
py_pathlist = PyObject_GetAttrString(py_mod, "__path__");
for (i = 0; i < PyList_Size(py_pathlist); i++) {
py_path = PyList_GetItem(py_pathlist, i);
- PyUnicode_FSConverter(PyList_GetItem(py_pathlist, i), &py_path);
+ PyUnicode_FSConverter(PyList_GetItem(py_pathlist, i), &py_path);
path = PyBytes_AS_STRING(py_path);
if (!(d = opendir(path))) {
ERR("Invalid module path '%s'", path);