summaryrefslogtreecommitdiffstats
path: root/rose/rsmemsiz.c
Commit message (Collapse)AuthorAgeFilesLines
* rsmemsiz: Fix warning and add error check to getuptime call.Ralf Baechle2017-02-061-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>
* rsmemsiz: Rewrite the last instance of FILE_TO_BUF().Ralf Baechle2017-02-061-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 Baechle2017-02-061-2/+0
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Use sysinfo to obtain uptime.Ralf Baechle2017-02-061-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 Baechle2017-02-061-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 Baechle2017-02-061-16/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Mark several functions static.Ralf Baechle2017-02-061-3/+6
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* rsmemsiz: Move /proc filename defines to pathnames.h.Ralf Baechle2017-02-061-9/+7
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Reformat consistently. Strictly whitespace changes only.Ralf Baechle2013-06-171-21/+21
| | | | | | | Indentation by tabs only. Move case labels in switches are on the same level as the switch keyword. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Always have a space between if, for, switch, while and the following `('.Ralf Baechle2013-06-171-1/+1
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Use tabs for indentation, not spaces.Ralf Baechle2013-06-171-4/+4
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* Nuke trailing whitespace.Ralf Baechle2013-06-171-5/+5
| | | | Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
* changed mail addressesThomas Osterried2008-04-271-1/+1
|
* Import ax25-tools 0.0.1 from tarballax25-tools-0.0.1Ralf Baechle1999-04-211-0/+204