Skip to content

Commit

Permalink
supplemental commit
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.code.sf.net/p/spacenav/code/trunk/spnavcfg@50 ef983eb1-d774-4af8-acfd-baaf7b16a646
  • Loading branch information
jtsiomb committed Oct 19, 2008
1 parent 70f1a3c commit 735e5a7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions back.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@ int backend(int pfd)

switch(cmd) {
case CMD_PING:
printf("got CMD_PING\n");
tmp = (dpid = get_daemon_pid()) != -1;
write(pfd, &tmp, 1);
break;

case CMD_CFG:
printf("got CMD_CFG\n");
{
char *buf = (char*)&cfg;
int sz = sizeof cfg;
Expand All @@ -71,9 +69,7 @@ int backend(int pfd)
break;

case CMD_STARTX:
printf("got CMD_STARTX\n");
case CMD_STOPX:
printf("got CMD_STOPX\n");
if(dpid == -1) {
if((dpid = get_daemon_pid()) == -1) {
return -1;
Expand All @@ -88,7 +84,7 @@ int backend(int pfd)
break;

default:
printf("unknown CMD: %d\n", (int)cmd);
fprintf(stderr, "unknown CMD: %d\n", (int)cmd);
break;
}
}
Expand Down

0 comments on commit 735e5a7

Please sign in to comment.