Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Apr 12, 2012
1 parent 4741a11 commit fa21584
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/win/util.c
Expand Up @@ -359,9 +359,9 @@ uv_err_t uv_get_process_title(char* buffer, size_t size) {
if (!process_title && uv__get_process_title() == -1) {
return uv__new_sys_error(GetLastError());
}

assert(process_title);
strncpy(buffer, process_title, size);
strncpy(buffer, process_title, size);
LeaveCriticalSection(&process_title_lock);

return uv_ok_;
Expand Down Expand Up @@ -474,7 +474,7 @@ uv_err_t uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {

*count = 0;

for (i = 0; i < system_info.dwNumberOfProcessors; i++) {
for (i = 0; i < system_info.dwNumberOfProcessors; i++) {
_snprintf(key, sizeof(key), "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\%d", i);

if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, key, 0, KEY_QUERY_VALUE,
Expand Down Expand Up @@ -503,7 +503,7 @@ uv_err_t uv_cpu_info(uv_cpu_info_t** cpu_infos, int* count) {

RegCloseKey(processor_key);
processor_key = NULL;

cpu_info = &(*cpu_infos)[i];

/* $TODO: find times on windows */
Expand Down Expand Up @@ -631,7 +631,7 @@ uv_err_t uv_interface_addresses(uv_interface_address_t** addresses,
}
}
}

assert(name);
address->name = name;

Expand Down

0 comments on commit fa21584

Please sign in to comment.