Repository : ssh://git@open-mesh.org/alfred
On branch : master
commit c73e56c594e9de4c4586945c929db0f7acac90ac Author: Jonathan Haws jhaws@sdl.usu.edu Date: Thu Jan 26 19:23:09 2017 -0700
alfred: fix style for sync-period casts
Signed-off-by: Jonathan Haws jhaws@sdl.usu.edu [sw: add Jonathans sign-off, rewrite subject] Signed-off-by: Simon Wunderlich sw@simonwunderlich.de
c73e56c594e9de4c4586945c929db0f7acac90ac main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/main.c b/main.c index 1cabe15..446eecf 100644 --- a/main.c +++ b/main.c @@ -276,8 +276,8 @@ static struct globals *alfred_init(int argc, char *argv[]) return NULL; case 'p': sync_period = strtod(optarg, NULL); - globals->sync_period.tv_sec = (int) sync_period; - globals->sync_period.tv_nsec = (double) (sync_period - (int) sync_period) * 1e9; + globals->sync_period.tv_sec = (int)sync_period; + globals->sync_period.tv_nsec = (double)(sync_period - (int)sync_period) * 1e9; printf(" ** Setting sync interval to: %.9f seconds (%ld.%09ld)\n", sync_period, globals->sync_period.tv_sec, globals->sync_period.tv_nsec); break; case '4':