This is an automated email from Gerrit.

Spencer Oliver ([email protected]) just uploaded a new patch set to Gerrit, 
which you can find at http://openocd.zylin.com/995

-- gerrit

commit bafd356efab4a2f1e45cca84f51fe2c84f48f5b8
Author: Spencer Oliver <[email protected]>
Date:   Fri Nov 23 16:53:23 2012 +0000

    helper: fix code formatting
    
    Change-Id: Ide2d704c9ef4f5563649d5db53bbdd3641868b70
    Signed-off-by: Spencer Oliver <[email protected]>

diff --git a/src/helper/replacements.c b/src/helper/replacements.c
index 2020003..583e616 100644
--- a/src/helper/replacements.c
+++ b/src/helper/replacements.c
@@ -89,12 +89,9 @@ int gettimeofday(struct timeval *tv, struct timezone *tz)
                GetSystemTimeAsFileTime(&ft);
                li.LowPart  = ft.dwLowDateTime;
                li.HighPart = ft.dwHighDateTime;
-               t  = li.QuadPart;                                       /* In 
100-nanosecond
-                                                                        
*intervals */
-               t -= EPOCHFILETIME;                                     /* 
Offset to the Epoch time
-                                                                        **/
-               t /= 10;                                                        
/* In microseconds
-                                                                               
 **/
+               t  = li.QuadPart;                                       /* In 
100-nanosecond intervals */
+               t -= EPOCHFILETIME;                                     /* 
Offset to the Epoch time */
+               t /= 10;                                                        
/* In microseconds */
                tv->tv_sec  = (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,
                                                                    NULL, 
&dwBytes, NULL)) {
-                                                               /* check to see 
if gdb pipe has data
-                                                                *available */
+                                                               /* check to see 
if gdb pipe has data available */
                                                                if (dwBytes) {
-                                                                       
FD_SET(handle_slot_to_fd[i],
-                                                                               
&aread);
+                                                                       
FD_SET(handle_slot_to_fd[i], &aread);
                                                                        
retcode++;
                                                                }
                                                        } else {
-                                                               
FD_SET(handle_slot_to_fd[i],
-                                                                       &aread);
+                                                               
FD_SET(handle_slot_to_fd[i], &aread);
                                                                retcode++;
                                                        }
                                                }

-- 

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to