helper: fix code formatting
Change-Id: Ide2d704c9ef4f5563649d5db53bbdd3641868b70 Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/995 Tested-by: jenkins
This commit is contained in:
parent
1a8223f28b
commit
27ad96e0d9
|
@ -89,12 +89,9 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
|
||||||
GetSystemTimeAsFileTime(&ft);
|
GetSystemTimeAsFileTime(&ft);
|
||||||
li.LowPart = ft.dwLowDateTime;
|
li.LowPart = ft.dwLowDateTime;
|
||||||
li.HighPart = ft.dwHighDateTime;
|
li.HighPart = ft.dwHighDateTime;
|
||||||
t = li.QuadPart; /* In 100-nanosecond
|
t = li.QuadPart; /* In 100-nanosecond intervals */
|
||||||
*intervals */
|
t -= EPOCHFILETIME; /* Offset to the Epoch time */
|
||||||
t -= EPOCHFILETIME; /* Offset to the Epoch time
|
t /= 10; /* In microseconds */
|
||||||
**/
|
|
||||||
t /= 10; /* In microseconds
|
|
||||||
**/
|
|
||||||
tv->tv_sec = (long)(t / 1000000);
|
tv->tv_sec = (long)(t / 1000000);
|
||||||
tv->tv_usec = (long)(t % 1000000);
|
tv->tv_usec = (long)(t % 1000000);
|
||||||
}
|
}
|
||||||
|
@ -244,16 +241,13 @@ int win_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct time
|
||||||
|
|
||||||
if (PeekNamedPipe((HANDLE)handle, NULL, 0,
|
if (PeekNamedPipe((HANDLE)handle, NULL, 0,
|
||||||
NULL, &dwBytes, NULL)) {
|
NULL, &dwBytes, NULL)) {
|
||||||
/* check to see if gdb pipe has data
|
/* check to see if gdb pipe has data available */
|
||||||
*available */
|
|
||||||
if (dwBytes) {
|
if (dwBytes) {
|
||||||
FD_SET(handle_slot_to_fd[i],
|
FD_SET(handle_slot_to_fd[i], &aread);
|
||||||
&aread);
|
|
||||||
retcode++;
|
retcode++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
FD_SET(handle_slot_to_fd[i],
|
FD_SET(handle_slot_to_fd[i], &aread);
|
||||||
&aread);
|
|
||||||
retcode++;
|
retcode++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue