]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Fix error reporting in main() and friends
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Thu, 30 Dec 2021 23:19:47 +0000 (00:19 +0100)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 26 Feb 2022 15:43:17 +0000 (16:43 +0100)
commita2636e5e11d50a1629b9391ee95bc212e00c67bc
treee45350086d5ca6ed4d41b1c69e663585c12f55cc
parenta62ce567cb7cc11a03aaa94f41f433b1b2bb3f16
Fix error reporting in main() and friends

- Use POSIX error handling (errno and strerror()) for standard C and
  POSIX functions, including in Windows-only code.

- Add standard error messages with strerror() whenever possible. They
  are standard and easily recognisable by end-users.

- Add missing _() when neeeded.

- Remove extra "\n" from vpn_perror() call.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
main.c