Juha Niskanen
e800609e7b
netutils/tftpc: typos, nxstyle
2021-01-19 19:51:33 +01:00
YAMAMOTO Takashi
72d9b34fb1
netutils/tftpc/tftpc_put.c: Fix syslog formats
2020-11-24 18:44:23 -08:00
Gregory Nutt
b2d8c501f6
Remove use of set_errno() from application code.
...
The normal assignment errno = errcode should work fine now.
2020-05-07 22:23:19 +01:00
Xiang Xiao
e72608e0d8
Fix nxstyle issue
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2020-05-02 09:45:44 -06:00
Xiang Xiao
41d88f06e7
Run codespell -w with the latest dictonary again
2020-02-23 07:10:14 -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
Xiang Xiao
0218a2fcc7
Fix compiler warnings:
...
tftpc_get.c: In function 'tftp_write': tftpc_get.c:307:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
int fd = (int)ctx;
^
tftpc_get.c: In function 'tftpget': tftpc_get.c:368:57: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
result = tftpget_cb(remote, addr, binary, tftp_write, (void*)fd);
^
2019-12-05 07:14:29 -06:00
Gregory Nutt
b2f46360de
apps/: Remove/replace all conditional logic based on CONFIG_NSOCKET_DESCRIPTORS == 0. That value is always greater than zero now. In places just replace with #ifdef CONFIG_NET.
2019-02-11 16:23:55 -06:00
Gregory Nutt
a14f3fbffb
apps/netutils/tftpc: Fix unmatched #endif found in build testing
2019-02-11 15:52:37 -06:00
Gregory Nutt
9db029e318
The file system can no longer be disabled. Remove all conditional logic based on CONFIG_NFILE_DESCRIPTORS==0
2019-02-11 13:10:10 -06:00
Sebastien Lorquet
3211ab9069
apps/netutils/tftpc: This commit modifies the TFTP client functions to use a data read/write callback instead of a file.This allows TFTP to write to arbitrary destination (in my case, a MTD device - for firmware update). Two new functions are introduced for this, named tftpget_cb and tftpput_cb. They are just made of most of the existing code. The previously existing tftpget/tftpput functions are now wrappers on the new ones, with callbacks that read/write from files, so my modifications are backwards compatible with existing applications, eg the associated nsh commands dont need to be changed.
2018-03-09 07:08:06 -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
a50383db3d
apps/graphics and netutils: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-14 17:53:47 -06:00
Gregory Nutt
4a0db11565
Eliminate some warnings
2016-06-12 17:33:49 -06:00
Gregory Nutt
586b0aa7e0
Change names of *dbg() * *err()
2016-06-11 15:51:27 -06:00
Gregory Nutt
468bdcf8e6
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:13:39 -06:00
Gregory Nutt
344c92e2a4
Replace all occurrences of vdbg with vinfo
2016-06-11 11:55:38 -06:00
Gregory Nutt
069c43a5dd
Remove all inclusion of uip.h
2014-07-04 16:58:22 -06:00
Gregory Nutt
817e256db3
Move the remaining files from include/nuttx/net/uip to include/nuttx/net; Rename *_internal.h header files in net/ to just *.h
2014-06-24 10:14:15 -06:00
Gregory Nutt
d76252f196
Move include/nuttx/net/uipopt.h to include/nuttx/net/netconfig.h
2014-06-24 08:53:28 -06:00
patacongo
f8e08440f7
Email address change in apps/
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5143 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 16:58:49 +00:00
patacongo
217e8451f9
Move all non-standard, NuttX header files into include/nuttx/net
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4450 42af7a65-404d-4744-a932-0658087f49c3
2012-03-03 23:18:34 +00:00
patacongo
ba73620d39
Correct and error in recv() and recvfrom() return value
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4402 42af7a65-404d-4744-a932-0658087f49c3
2012-02-18 18:13:30 +00:00
patacongo
893d4dbbfe
Pass __KERNEL__ define (or not) to all makes to handle small differences in user-/kernel-builds
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3459 42af7a65-404d-4744-a932-0658087f49c3
2011-04-03 18:42:33 +00:00
patacongo
5b96d86bfb
Move nuttx/netutils to apps/netutils
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3401 42af7a65-404d-4744-a932-0658087f49c3
2011-03-19 21:04:13 +00:00