diff options
author | 2015-08-12 17:27:27 +0000 | |
---|---|---|
committer | 2015-08-12 17:27:27 +0000 | |
commit | fcb22a03bcfc1c6448b47085713b9a0285d39f38 (patch) | |
tree | 65c9bdbccbadeeba9c029d1d85547a1f6974a24f /sys/netinet/tcp_input.c | |
parent | more explicit warnings. Okay tedu@ (diff) | |
download | wireguard-openbsd-fcb22a03bcfc1c6448b47085713b9a0285d39f38.tar.xz wireguard-openbsd-fcb22a03bcfc1c6448b47085713b9a0285d39f38.zip |
Start the rework of the /etc/rc shell script.
General changes:
- apply a similar 'style' as used in the installer scripts
- improve comments to be more to the point, remove where code is obvious
- document usage of functions if they have arguments
- rename variables where it improves readability
- replace really old-school shell code with more contemporary idioms
Changes to stripcom():
- skip empty files (eleminates tests for this before calling stripcom)
- remove {} around the while-loop, feed file directly
- instead of continue if empty and then print, print only if non-empty
- use the safer "print -r --" instead of plain "echo"
- quote "$_line" on output to prevent globbing
Changes to update_limit():
- use {,-cur,-max} instead of "" -cur -max
- eleminate if-block with reverse test and continue
OK halex@ krw@
Diffstat (limited to 'sys/netinet/tcp_input.c')
0 files changed, 0 insertions, 0 deletions