1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-06-04 23:44:10 +00:00

Fix: small cleanups

This commit is contained in:
jcorporation 2018-12-02 23:43:49 +00:00
parent 27967c072a
commit 08acd687b7
2 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
<body> <body>
<header> <header>
<nav class="navbar navbar-expand navbar-dark fixed-top bg-dark"> <nav class="navbar navbar-expand navbar-dark fixed-top bg-dark">
<a class="navbar-brand" data-toggle="dropdown" href="#"> <a class="navbar-brand" href="#">
<span class="material-icons header-logo">play_circle_outline</span>myMPD <span class="material-icons header-logo">play_circle_outline</span>myMPD
</a> </a>
</nav> </nav>

View File

@ -1560,8 +1560,8 @@ int mympd_syscmd(char *buffer, char *cmd, int order) {
if (read > 0) { if (read > 0) {
strtok(line, "\n"); strtok(line, "\n");
if (system(line) == 0) { if (system(line) == 0) {
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"result\", \"data\": \"Executed cmd %s.\"}", line); len = snprintf(buffer, MAX_SIZE, "{\"type\": \"result\", \"data\": \"Executed cmd %s.\"}", cmd);
LOG_VERBOSE() printf("Executed syscmd \"%s\"\n", line); LOG_VERBOSE() printf("Executed syscmd: \"%s\"\n", line);
} }
else { else {
len = snprintf(buffer, MAX_SIZE, "{\"type\": \"error\", \"data\": \"Executing cmd %s failed.\"}", cmd); len = snprintf(buffer, MAX_SIZE, "{\"type\": \"error\", \"data\": \"Executing cmd %s failed.\"}", cmd);