projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Replace 'while(' with 'while ('.
[fw/openocd]
/
src
/
server
/
server.c
diff --git
a/src/server/server.c
b/src/server/server.c
index 0840c52399c0ef52ccda3c36ea12f3d57c8fb892..bca9774f56176fe0352d43164c8028558cd7e6f9 100644
(file)
--- a/
src/server/server.c
+++ b/
src/server/server.c
@@
-116,7
+116,7
@@
int remove_connection(service_t *service, connection_t *connection)
connection_t *c;
/* find connection */
connection_t *c;
/* find connection */
- while((c = *p))
+ while
((c = *p))
{
if (c->fd == connection->fd)
{
{
if (c->fd == connection->fd)
{
@@
-237,7
+237,7
@@
int remove_service(unsigned short port)
service_t *c;
/* find service */
service_t *c;
/* find service */
- while((c = *p))
+ while
((c = *p))
{
if (c->port == port)
{
{
if (c->port == port)
{
@@
-264,7
+264,7
@@
int remove_services(void)
service_t *c = services;
/* loop service */
service_t *c = services;
/* loop service */
- while(c)
+ while
(c)
{
service_t *next = c->next;
{
service_t *next = c->next;
@@
-310,7
+310,7
@@
int server_loop(command_context_t *command_context)
tv.tv_sec = 0;
tv.tv_usec = 10000;
tv.tv_sec = 0;
tv.tv_usec = 10000;
- while(!shutdown_openocd)
+ while
(!shutdown_openocd)
{
/* monitor sockets for acitvity */
fd_max = 0;
{
/* monitor sockets for acitvity */
fd_max = 0;