Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | rsmemsiz: Fix warning and add error check to getuptime call. | Ralf Baechle | 2017-02-06 | 1 | -1/+5 |
| | | | | | | | | | rsmemsiz.c: In function ‘main’: rsmemsiz.c:139:11: warning: ‘uptime_secs’ may be used uninitialized in this function [-Wmaybe-uninitialized] updays = (int) uptime_secs / (60*60*24); ^~~~~~~~~~~~~~~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsuplnk: Add cast to silence useless warning. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | | | | | | rsuplnk.c: In function ‘main’: rsuplnk.c:262:17: warning: overflow in implicit constant conversion [-Woverflow] buffer[0] = 0xF0; ^~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | user_call: Fix warning about void pointer arithmetic. | Ralf Baechle | 2017-02-06 | 1 | -2/+3 |
| | | | | | | | | | | user_io.c user_io.c: In function ‘flush_output’: user_io.c:70:7: warning: pointer of type ‘void *’ used in arithmetic [-Wpointer-arith] buf += paclen_out; ^~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsmemsiz: Rewrite the last instance of FILE_TO_BUF(). | Ralf Baechle | 2017-02-06 | 1 | -28/+25 |
| | | | | | | | Expand the one remaining invocation to FILE_TO_BUF(), then fix the return type and attempt to close fd -1 and format nicely. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsmemsiz: Delete now unused macro SET_IF_DESIRED. | Ralf Baechle | 2017-02-06 | 1 | -2/+0 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsmemsiz: Use sysinfo to obtain uptime. | Ralf Baechle | 2017-02-06 | 1 | -9/+9 |
| | | | | | | | Now that uptime() is only used to obtain the load average it's trivial to replace. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsmemsiz: When parsing /proc/uptime, ignore idle time. | Ralf Baechle | 2017-02-06 | 1 | -6/+5 |
| | | | | | | We don't use this information anyway later on. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsmemsiz: Use standard libc function to get load average. | Ralf Baechle | 2017-02-06 | 1 | -16/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | ttylinkd: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -3/+3 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | ax25d: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axwrapper: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axgetput: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | mkiss: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -3/+3 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axspawn: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -6/+6 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axgetput: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -11/+12 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axspawn: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -7/+7 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | mheard: Fix use of 0 instead of NULL as a pointer value. | Ralf Baechle | 2017-02-06 | 1 | -5/+5 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axgetput: Make function calc_crc static. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axgetput: Include util.h into utilc for the prototypes. | Ralf Baechle | 2017-02-06 | 1 | -0/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axgetput: Make do_version static. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axgetput: Move definition of several array from a .h to a .c file. | Ralf Baechle | 2017-02-06 | 2 | -3/+7 |
| | | | | | | And add proper declarations to the header file. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | ax25d: Reorder code to avoid the need for forward declarations. | Ralf Baechle | 2017-02-06 | 1 | -461/+454 |
| | | | | | | And then delete those now useless declarations. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | ax25d: Make several functions static. | Ralf Baechle | 2017-02-06 | 1 | -4/+7 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axparms: Make several functions static. | Ralf Baechle | 2017-02-06 | 1 | -9/+9 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axspawn: Remove unused function Xtoupper(). | Ralf Baechle | 2017-02-06 | 1 | -9/+0 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axspawn: Sort out homebrew declaration of forkpty(3). | Ralf Baechle | 2017-02-06 | 1 | -9/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axspawn: Make many functions and variables static. | Ralf Baechle | 2017-02-06 | 1 | -42/+38 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axspawn: Move calc_md5_pw to eleminate need for declaration and make static. | Ralf Baechle | 2017-02-06 | 1 | -30/+29 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axspawn: Make several functions and variables static. | Ralf Baechle | 2017-02-06 | 1 | -11/+8 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | axwrapper: Mark functions sigchld_handler and convert_{cr_lf,lf_cr} static. | Ralf Baechle | 2017-02-06 | 1 | -3/+3 |
| | | | | | | | | This results in a new warning about sigchld_handler() being unused which is because the caller is currently commented out which we leave to be sorted out later. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | bpqparms: Fix excessive indentation in usage(). | Ralf Baechle | 2017-02-06 | 1 | -4/+4 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | bpqparms: Make functions usage and get_hwaddr static. | Ralf Baechle | 2017-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | hdrvcomm: Make functions hdrvc_sendmsg and hdrvc_recvmsg static. | Ralf Baechle | 2017-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | netromd: Fix warning by moving declaration of variable `compliant'. | Ralf Baechle | 2017-02-06 | 2 | -2/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | nrattach: Make several functions and variables static. | Ralf Baechle | 2017-02-06 | 1 | -5/+5 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | nrparms: Make several functions and variables static. | Ralf Baechle | 2017-02-06 | 1 | -4/+7 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsattach: Make several functions and variables static. | Ralf Baechle | 2017-02-06 | 1 | -5/+5 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsdwnlnk: Make alarm_handler() static. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsmemsiz: Mark several functions static. | Ralf Baechle | 2017-02-06 | 1 | -3/+6 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsparms: Make several functions and variables static. | Ralf Baechle | 2017-02-06 | 1 | -3/+4 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsuplnk: Make function alarm_handler static. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | ax25_call: Make function alarm_handler static. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | ttylinkd: Make several variables and functions static. | Ralf Baechle | 2017-02-06 | 1 | -17/+18 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | netrom_call: Make alarm_handler() a static function. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rose_call: Make alarm_handler a static function. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | tcp_call: Make alarm_handler() a static function. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | dmascc: Mark usage() function static. | Ralf Baechle | 2017-02-06 | 1 | -1/+1 |
| | | | | | | It's not used anywhere else. Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | yamdrv: Mark functions static and delete unused function. | Ralf Baechle | 2017-02-06 | 1 | -15/+2 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | netromt: Use symbolic pathnames from pathnames.h. | Ralf Baechle | 2017-02-06 | 1 | -2/+2 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> | ||||
* | rsmemsiz: Move /proc filename defines to pathnames.h. | Ralf Baechle | 2017-02-06 | 2 | -9/+11 |
| | | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org> |