Skip to content

Commit

Permalink
drivers/clone.c: fix whitespace and comments after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jimklimov committed May 17, 2022
1 parent dd1a5a6 commit 8131c82
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions drivers/clone.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ static int sstate_connect(void)
return -1;
}

/* continued below... */
#else
HANDLE sstate_connect(void)
{
Expand Down Expand Up @@ -288,18 +289,19 @@ HANDLE sstate_connect(void)
ReadFile(fd,read_buf,sizeof(read_buf)-1,NULL,&(read_overlapped)); /*-1 to be sure to have a trailling 0 */
#endif

pconf_init(&sock_ctx, NULL);
/* sstate_connect() continued for both platforms: */
pconf_init(&sock_ctx, NULL);

time(&last_heard);
time(&last_heard);

dumpdone = 0;
dumpdone = 0;

/* set ups.status to "WAIT" while waiting for the driver response to dumpcmd */
dstate_setinfo("ups.status", "WAIT");
/* set ups.status to "WAIT" while waiting for the driver response to dumpcmd */
dstate_setinfo("ups.status", "WAIT");

upslogx(LOG_INFO, "Connected to UPS [%s]", device_path);
return fd;
}
upslogx(LOG_INFO, "Connected to UPS [%s]", device_path);
return fd;
}


static void sstate_disconnect(void)
Expand Down

0 comments on commit 8131c82

Please sign in to comment.