mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Remove trailing whitespace from C/C++ files
https://secwiki.org/w/Nmap/Code_Standards
This commit is contained in:
parent
2896c21989
commit
c9714990c7
41 changed files with 374 additions and 374 deletions
|
|
@ -202,7 +202,7 @@ void pfatal(const char *fmt, ...) {
|
|||
|
||||
#ifdef WIN32
|
||||
error_number = GetLastError();
|
||||
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL, error_number, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
(LPTSTR) &strerror_s, 0, NULL);
|
||||
#else
|
||||
|
|
@ -264,14 +264,14 @@ void gh_perror(const char *fmt, ...) {
|
|||
|
||||
#ifdef WIN32
|
||||
error_number = GetLastError();
|
||||
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER|FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL, error_number, MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT),
|
||||
(LPTSTR) &strerror_s, 0, NULL);
|
||||
#else
|
||||
error_number = errno;
|
||||
strerror_s = strerror(error_number);
|
||||
#endif
|
||||
|
||||
|
||||
va_start(ap, fmt);
|
||||
log_vwrite(LOG_NORMAL|LOG_STDERR, fmt, ap);
|
||||
va_end(ap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue