From: Uwe Hermann Date: Sun, 27 May 2018 15:07:26 +0000 (+0200) Subject: Random whitespace/cosmetic/typo fixes. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=07182332f06e09619b2ae2d61de16fafacd750cd;p=libsigrok.git Random whitespace/cosmetic/typo fixes. --- diff --git a/src/hardware/arachnid-labs-re-load-pro/api.c b/src/hardware/arachnid-labs-re-load-pro/api.c index cfb413d5..d6f95723 100644 --- a/src/hardware/arachnid-labs-re-load-pro/api.c +++ b/src/hardware/arachnid-labs-re-load-pro/api.c @@ -347,7 +347,6 @@ static int dev_acquisition_stop(struct sr_dev_inst *sdi) g_mutex_clear(&devc->acquisition_mutex); return ret; - } static struct sr_dev_driver arachnid_labs_re_load_pro_driver_info = { diff --git a/src/hardware/beaglelogic/api.c b/src/hardware/beaglelogic/api.c index 0be82c13..95f53159 100644 --- a/src/hardware/beaglelogic/api.c +++ b/src/hardware/beaglelogic/api.c @@ -1,7 +1,7 @@ /* * This file is part of the libsigrok project. * - * Copyright (C) 2014-17 Kumar Abhishek + * Copyright (C) 2014-2017 Kumar Abhishek * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/hardware/beaglelogic/beaglelogic.h b/src/hardware/beaglelogic/beaglelogic.h index 8d71a10b..2150032c 100644 --- a/src/hardware/beaglelogic/beaglelogic.h +++ b/src/hardware/beaglelogic/beaglelogic.h @@ -1,7 +1,7 @@ /* * This file is part of the libsigrok project. * - * Copyright (C) 2014-17 Kumar Abhishek + * Copyright (C) 2014-2017 Kumar Abhishek * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/hardware/beaglelogic/beaglelogic_native.c b/src/hardware/beaglelogic/beaglelogic_native.c index f94ffcc0..42d51edf 100644 --- a/src/hardware/beaglelogic/beaglelogic_native.c +++ b/src/hardware/beaglelogic/beaglelogic_native.c @@ -1,7 +1,7 @@ /* * This file is part of the libsigrok project. * - * Copyright (C) 2014-17 Kumar Abhishek + * Copyright (C) 2014-2017 Kumar Abhishek * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/hardware/beaglelogic/protocol.c b/src/hardware/beaglelogic/protocol.c index 0fc6f123..053daad9 100644 --- a/src/hardware/beaglelogic/protocol.c +++ b/src/hardware/beaglelogic/protocol.c @@ -1,7 +1,7 @@ /* * This file is part of the libsigrok project. * - * Copyright (C) 2014-17 Kumar Abhishek + * Copyright (C) 2014-2017 Kumar Abhishek * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/hardware/beaglelogic/protocol.h b/src/hardware/beaglelogic/protocol.h index 207fbe27..a2af44f2 100644 --- a/src/hardware/beaglelogic/protocol.h +++ b/src/hardware/beaglelogic/protocol.h @@ -1,7 +1,7 @@ /* * This file is part of the libsigrok project. * - * Copyright (C) 2014-17 Kumar Abhishek + * Copyright (C) 2014-2017 Kumar Abhishek * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/src/hardware/maynuo-m97/api.c b/src/hardware/maynuo-m97/api.c index 0e593938..54444d62 100644 --- a/src/hardware/maynuo-m97/api.c +++ b/src/hardware/maynuo-m97/api.c @@ -140,7 +140,7 @@ static struct sr_dev_inst *probe_device(struct sr_modbus_dev_inst *modbus) sdi->status = SR_ST_INACTIVE; sdi->vendor = g_strdup("Maynuo"); sdi->model = g_strdup(model->name); - sdi->version = g_strdup_printf("v%d.%d", version/10, version%10); + sdi->version = g_strdup_printf("v%d.%d", version / 10, version % 10); sdi->conn = modbus; sdi->driver = &maynuo_m97_driver_info; sdi->inst_type = SR_INST_MODBUS; diff --git a/src/hardware/motech-lps-30x/api.c b/src/hardware/motech-lps-30x/api.c index af3ee4f0..46407cc5 100644 --- a/src/hardware/motech-lps-30x/api.c +++ b/src/hardware/motech-lps-30x/api.c @@ -441,7 +441,7 @@ static GSList *do_scan(lps_modelid modelid, struct sr_dev_driver *drv, GSList *o devc->channel_status[cnt].info = g_slist_append(NULL, ch); cg = g_malloc(sizeof(struct sr_channel_group)); - snprintf(channel, sizeof(channel), "CG%d", cnt+1); + snprintf(channel, sizeof(channel), "CG%d", cnt + 1); cg->name = g_strdup(channel); cg->priv = NULL; cg->channels = g_slist_append(NULL, ch); diff --git a/src/session_file.c b/src/session_file.c index 2515ca5e..7a2010e4 100644 --- a/src/session_file.c +++ b/src/session_file.c @@ -167,7 +167,7 @@ SR_PRIV int sr_sessionfile_check(const char *filename) return SR_OK; } - + /** @private */ SR_PRIV struct sr_dev_inst *sr_session_prepare_sdi(const char *filename, struct sr_session **session) { diff --git a/src/usb.c b/src/usb.c index b453c04c..8a8f0ca5 100644 --- a/src/usb.c +++ b/src/usb.c @@ -509,7 +509,7 @@ SR_PRIV int usb_get_port_path(libusb_device *dev, char *path, int path_len) } /** - * Check the USB configuration to determine if this device has a given + * Check the USB configuration to determine if this device has a given * manufacturer and product string. * * @return TRUE if the device's configuration profile strings