Skip to content

Commit

Permalink
remove double newline from output
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Jan 29, 2024
1 parent 1a94f5a commit a439eab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion example_config/server/home/pi/Music

This file was deleted.

1 change: 0 additions & 1 deletion example_config/server/var/lib/mpd/MDrive

This file was deleted.

7 changes: 5 additions & 2 deletions pistopclient.c
@@ -1,5 +1,8 @@
/*
* $Log: pistopclient.c,v $
* Revision 1.3 2024-01-29 09:51:15+05:30 Cprogrammer
* remove double newline
*
* Revision 1.2 2023-06-28 12:34:04+05:30 Cprogrammer
* added more info messages
*
Expand Down Expand Up @@ -293,11 +296,11 @@ main(int argc, char **argv)
_exit(0);
}
if (substdio_put(subfderr, "got command [", 13) == -1 ||
substdio_put(subfderr, buffer, length) == -1 ||
substdio_put(subfderr, buffer, length - 1) == -1 ||
substdio_put(subfderr, "]\n", 2) == -1 || substdio_flush(subfderr))
die_write();
if (!str_diffn(buffer, "shutdown\n", 9)) {
out("remote powered off executing ");
out("remote powered off. Executing ");
out(pistopstart.s);
out(" stop\n");
flush();
Expand Down

0 comments on commit a439eab

Please sign in to comment.