Commit graph

20 commits

Author SHA1 Message Date
Daniele Forsi IU5HKX
47f60d4ad7 [simulators] Remove unused includes
Found by iwyu.
2025-08-30 09:43:45 +02:00
Daniele Forsi IU5HKX
8f0c94dc77
[simulators] Fix compiler warning
Adds the same code used in other simulators.

Fixes:
simft897.c:26:9: warning: variable ‘n’ set but not used [-Wunused-but-set-variable]
2025-08-18 17:17:32 -05:00
Daniele Forsi IU5HKX
5b1517778e Replace "goto again" with "continue" (third case)
When the software on the other side of the pty closes the device,
the simulator would close and reopen its side  but it is unneeded
because it can continue to call read() without doing anything special.
2025-08-07 11:38:12 +02:00
Daniele Forsi IU5HKX
49c78edb80 Make code more uniform 2025-08-06 21:49:17 +02:00
Daniele Forsi IU5HKX
a5467f4033 Refactor to remove code duplication of one version of getmyline() 2025-08-04 11:34:00 +02:00
Daniele Forsi IU5HKX
f8881f9bb9 Remove disabled code
None of these simulators does multicast networking.
2025-08-03 22:09:04 +02:00
Daniele Forsi IU5HKX
9e51419ab8 Do not use relative paths for including rig.h
The Makefile adds all necessary include directories.
2025-08-03 16:09:51 +02:00
Daniele Forsi IU5HKX
98a81a5074 Replace magic number with a defined constant
The same constant is used by memset() in getmyline().
2025-08-03 09:35:03 +02:00
Daniele Forsi IU5HKX
ecece62828 Refactor to remove code duplication of openPort()
The code wasn't indented in simic7300.c and simic7700.c but it was
identical.
2025-08-03 09:35:02 +02:00
Daniele Forsi IU5HKX
3448c735b0 Remove non-working compilation instructions from comments
Some instructions were a copy and paste error, some did not link
to Hamlib. Compile all simulators with: make -C simulators check
or compile a single simulator replacing "check" with the name of
the simulator.

Fixed with:
perl -pe 's,// gcc.*\n,,' -i *.c
perl -pe 's,// On mingw.*\n,,' -i *.c
2025-04-30 19:34:22 +02:00
Daniele Forsi IU5HKX
037c4953ed Fix name of function in error messages
Fixed with:
perl -pe s/pstname/ptsname/ -i *.c
2025-04-30 19:22:36 +02:00
Mike Black W9MDB
5c269964c2 astyle files in preparation for release 4.6 2024-11-06 08:07:34 -06:00
Mike Black W9MDB
0e572f631b Update simft897.c 2024-03-17 08:53:53 -05:00
Mike Black W9MDB
4175929a48 More changes from cppcheck 2023-10-06 22:59:55 -05:00
Mike Black W9MDB
f00661a8ae Fix unused cppcheck warnings
https://github.com/Hamlib/Hamlib/issues/1351
2023-10-01 12:01:38 -05:00
Mike Black W9MDB
f45aea8859 Add simicom9100.c and fix compilation of all others due to POSIX requirements 2023-05-08 12:04:08 -05:00
Mike Black W9MDB
2a84386ae8 Add simft736.c and update others 2022-12-14 22:59:46 -06:00
Mike Black W9MDB
8c274456d4 Update rigctl.1
Update simft897.c
2022-10-21 22:59:49 -05:00
Mike Black W9MDB
c34f719337 Astyle files 2022-08-20 22:56:04 -05:00
Mike Black W9MDB
57dcd19bb3 Add simft897.c 2022-07-31 07:09:48 -05:00