diff options
| author | leo <[email protected]> | 2022-02-10 16:46:40 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:46:40 +0300 | 
| commit | 980edcd3304699edf9d4e4d6a656e585028e2a72 (patch) | |
| tree | 139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/system/compat.cpp | |
| parent | b036a557f285146e5e35d4213e29a094ab907bcf (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/compat.cpp')
| -rw-r--r-- | util/system/compat.cpp | 22 | 
1 files changed, 11 insertions, 11 deletions
diff --git a/util/system/compat.cpp b/util/system/compat.cpp index 18fbfa296a7..a00d03dbe9d 100644 --- a/util/system/compat.cpp +++ b/util/system/compat.cpp @@ -2,12 +2,12 @@  #include "defaults.h"  #include "progname.h" -#include <cctype> -#include <cerrno> -#include <cstdio> +#include <cctype>  +#include <cerrno>  +#include <cstdio>   #include <cstring> -#include <cstdarg> -#include <cstdlib> +#include <cstdarg>  +#include <cstdlib>   #include <util/generic/string.h> @@ -34,12 +34,12 @@ void usleep(i64 len) {      #include <fcntl.h>  int ftruncate(int fd, i64 length) { -    return _chsize_s(fd, length); +    return _chsize_s(fd, length);   }  int truncate(const char* name, i64 length) { -    int fd = ::_open(name, _O_WRONLY); -    int ret = ftruncate(fd, length); -    ::close(fd); -    return ret; -} +    int fd = ::_open(name, _O_WRONLY);  +    int ret = ftruncate(fd, length);  +    ::close(fd);  +    return ret;  +}   #endif  | 
