Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-08 07:01:47 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-08 07:01:47 +0300
commit1ddfd8c9ec1d61fa62dfe6adb37c4789476bc4e6 (patch)
tree3ddc03a5a1b81975fb69619faa415a461f9091eb /source/blender/blenlib/intern/system.c
parent0fe5a789837394d54c1a7570ef1e46c8ab3b0830 (diff)
Cleanup: style
Diffstat (limited to 'source/blender/blenlib/intern/system.c')
-rw-r--r--source/blender/blenlib/intern/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/system.c b/source/blender/blenlib/intern/system.c
index 5ff1d4ed710..c1a7846c4b1 100644
--- a/source/blender/blenlib/intern/system.c
+++ b/source/blender/blenlib/intern/system.c
@@ -181,14 +181,14 @@ char *BLI_cpu_brand_string(void)
void BLI_hostname_get(char *buffer, size_t bufsize)
{
#ifndef WIN32
- if (gethostname(buffer, bufsize-1) < 0) {
+ if (gethostname(buffer, bufsize - 1) < 0) {
BLI_strncpy(buffer, "-unknown-", bufsize);
}
/* When gethostname() truncates, it doesn't guarantee the trailing \0. */
buffer[bufsize - 1] = '\0';
#else
DWORD bufsize_inout = bufsize;
- if(!GetComputerName(buffer, &bufsize_inout)) {
+ if (!GetComputerName(buffer, &bufsize_inout)) {
strncpy(buffer, "-unknown-", bufsize);
}
#endif