Commit Graph

18 Commits

Author SHA1 Message Date
Alin Jerpelea
5c936ce0e4 Various fixes (#6)
Author: Gregory Nutt <gnutt@nuttx.org>

    Run all .c and .h affected by this PR through nxstyle.

Author: Alin Jerpelea <alin.jerpelea@sony.com>

    * system/usbmsc: Fix accessing uninitialized pointer
    * fsutils/inifile: Fix a memory leak in inifile error case
    * fsutils/mksmartfs: Fix uninitialized return code
    * system/zmodem: Fix a compile error in zmodem debug enabled
    * nshlib/nsh_fscmds.c: Add syntax check to cp command

    If the destication of NutShell cp command is the same with the source,
    it may cause the file corruption. Add the syntax check of argument to
    avoid this problem.
2020-01-07 09:01:23 -06:00
Xiang Xiao
857158451b Unify the void cast usage
1.Remove void cast for function because many place ignore the returned value witout cast
2.Replace void cast for variable with UNUSED macro

Change-Id: Ie644129a563244a6397036789c4c3ea83c4e9b09
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-01-02 23:21:01 +08:00
Nathan Hartman
664e8a1410 Fix minor typos in docs and comments. 2019-09-29 12:53:39 -06:00
Xiang Xiao
ddd86d31ca apps/system/zmodem:
- fix error "sz_main.o: No such file or directory"
  - support -p <path> for rz to change the folder for the recevied file
  - switch debug output from printf to syslog
  - send the next packet for ZME_ACK in ZMS_SENDING to avoid rz on the host side stuck
  - make send work reliable even without hardware flow control
2018-08-23 06:33:39 -06:00
Gregory Nutt
06dae98ce2 Fix some trivial typos. Add a comment to a C file. 2018-05-28 08:01:18 -06:00
Gregory Nutt
9ac16049b8 apps/system/zmodem: Fix an incompatibility with the way that CRCs are calculated. 2018-05-27 08:43:22 -06:00
Sebastien Lorquet
2cbad44f1d This is the Pokemon patch to change all includes fronm <apps/bla/bla.h> to "bla/bla.h" 2016-07-11 10:11:18 -06:00
Gregory Nutt
cd741c82cf apps/include: Move all header files associated with modules in apps/system to apps/include/system 2016-07-01 06:48:22 -06:00
Gregory Nutt
aacfce081e Fix several cosmetic, C coding style issues 2015-10-03 11:03:42 -06:00
Gregory Nutt
394f46560c Fix problems with host build of the Zmodem tools 2013-07-16 11:23:35 -06:00
Gregory Nutt
4303ec02b1 Zmodem utilities can now be built for Linux; Fix some configuration confusion 2013-07-15 17:50:17 -06:00
Gregory Nutt
b6778bf21d Fix file write loop 2013-07-15 16:21:20 -06:00
Gregory Nutt
4d3e50b66f Partial fixes for Zmodem RX buffering problems. 2013-07-15 12:33:35 -06:00
Gregory Nutt
82297ff7f8 More Zmodem bug fixes: Too many pkttypes; Use wrong packet buffer 2013-07-14 15:39:26 -06:00
Gregory Nutt
b3eee3fd9b Several fixes realted to receiving Zmodem files 2013-07-14 14:19:17 -06:00
Gregory Nutt
4d439eda39 Initial check-ing of (non-working) Zmodem receive logic 2013-07-14 11:05:23 -06:00
Gregory Nutt
b614666243 Resolve a few Zmodem sender streaming issues 2013-07-13 19:57:04 -06:00
Gregory Nutt
7576163ff6 More Zmodem bugfixes and new files 2013-07-13 13:19:15 -06:00