Random whitespace/cosmetic/typo fixes.

This commit is contained in:
Uwe Hermann 2018-05-27 17:07:26 +02:00
parent 015df4ae8f
commit 07182332f0
10 changed files with 9 additions and 10 deletions

View File

@ -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 = {

View File

@ -1,7 +1,7 @@
/*
* This file is part of the libsigrok project.
*
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
*
* 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

View File

@ -1,7 +1,7 @@
/*
* This file is part of the libsigrok project.
*
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
*
* 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

View File

@ -1,7 +1,7 @@
/*
* This file is part of the libsigrok project.
*
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
*
* 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

View File

@ -1,7 +1,7 @@
/*
* This file is part of the libsigrok project.
*
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
*
* 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

View File

@ -1,7 +1,7 @@
/*
* This file is part of the libsigrok project.
*
* Copyright (C) 2014-17 Kumar Abhishek <abhishek@theembeddedkitchen.net>
* Copyright (C) 2014-2017 Kumar Abhishek <abhishek@theembeddedkitchen.net>
*
* 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

View File

@ -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;

View File

@ -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);

View File

@ -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)
{

View File

@ -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