use for(;;) instead of while(1) to muffle some visual-C warnings

This commit is contained in:
rlar
2010-09-07 20:07:57 +00:00
parent b1f6da536a
commit 241783d0b5
18 changed files with 47 additions and 27 deletions
+3 -3
View File
@@ -163,7 +163,7 @@ static void EVTbackup_node_data(
/* for tail, and splice later data into the free list */
node_ptr = node_data->last_step[node_index];
node = *node_ptr;
while(1) {
for (;;) {
if((node->next == NULL) || (node->next->step > new_time)) {
/* Splice rest of list, if any, into free list */
@@ -252,7 +252,7 @@ static void EVTbackup_state_data(
/* for tail, and splice later data into the free list */
state_ptr = state_data->last_step[inst_index];
state = *state_ptr;
while(1) {
for (;;) {
if((state->next == NULL) || (state->next->step > new_time)) {
/* Splice rest of list, if any, into free list */
@@ -333,7 +333,7 @@ static void EVTbackup_msg_data(
/* for tail, and splice later data into the free list */
msg_ptr = msg_data->last_step[port_index];
msg = *msg_ptr;
while(1) {
for (;;) {
if((msg->next == NULL) || (msg->next->step > new_time)) {
/* Splice rest of list, if any, into free list */
+2 -2
View File
@@ -157,7 +157,7 @@ Ipc_Status_t ipc_transport_get_line (str, len, wait)
assert ((mbx_state == IPC_MBX_CONNECTED_TO_CLIENT) ||
(mbx_state == IPC_MBX_INITIALIZED));
do {
for (;;) {
if (wait == IPC_WAIT) {
mbx_$get_rec (mbx_handle, &mbx_recieve_msg_buf, mbx_$serv_msg_max,
&mbx_ret_ptr, &mbx_ret_len, &status);
@@ -231,7 +231,7 @@ Ipc_Status_t ipc_transport_get_line (str, len, wait)
fprintf (stderr, "ERROR: IPC: Bad message type (0x%x) recieved\n",
mbx_ret_ptr->mt);
}
} while (1);
}
return IPC_STATUS_ERROR;
}
+1 -1
View File
@@ -126,7 +126,7 @@ MIFgetValue (
/* now get the values into val */
while(1) {
for (;;) {
token = MIFget_token(line, &token_type);
+1 -1
View File
@@ -193,7 +193,7 @@ static void MIFterr(
deltmp[i] = ckt->CKTdeltaOld[i];
}
j = ckt->CKTorder;
while(1) {
for (;;) {
for(i=0;i <= j;i++) {
diff[i] = (diff[i] - diff[i+1])/deltmp[i];
}