ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit ec7cf8cb0eff44883b2e95852054356e5b0cea2b
parent 6529bce0803f9c5b68169f5302b5df80376a8230
Author: Jacob R. Edwards <n/a>
Date:   Fri, 20 May 2022 14:28:18 -0500

Remove useless whitespace

Diffstat:
Maps/aps.c | 2+-
Maps/player.c | 2+-
Maps/response.c | 2+-
Maps/split.c | 2+-
Mlib/ap/quote.c | 3+--
5 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/aps/aps.c b/aps/aps.c @@ -113,7 +113,7 @@ aps_addfd(struct aps *aps, int fd) ++aps->nfds; aps->pfds[fd].fd = fd; - return 0; + return 0; } int diff --git a/aps/player.c b/aps/player.c @@ -47,7 +47,7 @@ pstart(struct player *p) p->state = RUNNING; return 0; } - + prog = p->argv[0]; p->argv[0] = "apsplayer"; diff --git a/aps/response.c b/aps/response.c @@ -87,7 +87,7 @@ respfinish(struct aps *aps, int fd, char *error) aps_logfmt(aps, COMMAND, fd, "error '%s'", error); aps->clients[fd].resp->buf->len = 0; if (bufappend(RESP->buf, "error: ", 7) || - bufappend(RESP->buf, error, strlen(error)) || + bufappend(RESP->buf, error, strlen(error)) || bufappend(RESP->buf, "\n", 1)) return 1; } diff --git a/aps/split.c b/aps/split.c @@ -66,7 +66,7 @@ unquote(char **sp, int (*issep)(int)) **sp = 0; ++*sp; return start; - } + } /* NOTE: only up to the next argument MUST be moved */ memmove(*sp, *sp + 1, strlen(*sp)); } diff --git a/lib/ap/quote.c b/lib/ap/quote.c @@ -82,10 +82,9 @@ apunquote(char *s) break; } *bufp = s[i]; - } free(buf); errno = EINVAL; - return NULL; + return NULL; }