summaryrefslogtreecommitdiff
path: root/mbgcmptime
diff options
context:
space:
mode:
authorMartin Burnicki <martin.burnicki@meinberg.de>2021-11-08 21:15:14 +0100
committerMartin Burnicki <martin.burnicki@meinberg.de>2021-11-08 21:15:14 +0100
commitd65dfcd9b6ac89c9c6eee95a6e700cc07913734f (patch)
tree3bc712451766b0d723c126a43f87c4c771eee7bc /mbgcmptime
parent48518aee45a28b2b771228b7e23632c85c84e5d6 (diff)
downloadmbgtools-lx-d65dfcd9b6ac89c9c6eee95a6e700cc07913734f.tar.gz
mbgtools-lx-d65dfcd9b6ac89c9c6eee95a6e700cc07913734f.zip
Change type of MBG_DEV_FN to a structure
To avoid potential errors with arrays of device names.
Diffstat (limited to 'mbgcmptime')
-rw-r--r--mbgcmptime/mbgcmptime.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mbgcmptime/mbgcmptime.c b/mbgcmptime/mbgcmptime.c
index cc18cf7..fbee03a 100644
--- a/mbgcmptime/mbgcmptime.c
+++ b/mbgcmptime/mbgcmptime.c
@@ -1,7 +1,7 @@
/**************************************************************************
*
- * $Id: mbgcmptime.c 1.9 2021/04/12 21:57:54 martin REL_M $
+ * $Id: mbgcmptime.c 1.10 2021/11/08 18:01:08 martin.burnicki REL_M $
*
* Description:
* Main file for mbgcmptime program which compares the time on 2 devices
@@ -11,6 +11,8 @@
*
* -----------------------------------------------------------------------
* $Log: mbgcmptime.c $
+ * Revision 1.10 2021/11/08 18:01:08 martin.burnicki
+ * Account for modified MBG_DEV_FN type.
* Revision 1.9 2021/04/12 21:57:54 martin
* Updated printing of usage information.
* Revision 1.8 2021/03/21 17:39:41 martin
@@ -446,7 +448,7 @@ int main( int argc, char *argv[] )
// We don't call mbg_open_device_by_param_chk() here because
// we want to print our own error message in case of failure.
rc = mbg_open_device_by_param( &dh_ref, ref_dev_param, 0,
- ref_dev_fn, sizeof( ref_dev_fn ) );
+ ref_dev_fn.s, sizeof( ref_dev_fn.s ) );
if ( mbg_rc_is_error( rc ) )
{
@@ -457,7 +459,7 @@ int main( int argc, char *argv[] )
#if defined( DEBUG )
fprintf( stderr, "Ref device %s (%s) opened successfully.\n",
- ref_dev_param, ref_dev_fn );
+ ref_dev_param, ref_dev_fn.s );
#endif
mbg_get_device_info( dh_ref, &dev_info_ref );