someblocks

default description
git clone https://git.awy.one/someblocks.git
Log | Files | Refs | README | LICENSE

commit c7113fedf841c9307bf0943125de722154e2015b
parent 95a01b62da47bcc7d6189ea70ef83a657ffbbfdb
Author: awy <awy@awy.one>
Date:   Wed, 12 Nov 2025 18:31:49 +0300

fix

Diffstat:
Msomeblocks.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/someblocks.c b/someblocks.c @@ -37,7 +37,7 @@ void setupsignals(); void sighandler(int signum); int getstatus(char *str, char *last); void statusloop(); -void termhandler(); +void termhandler(int signum); void pstdout(); void psomebar(); static void (*writestatus) () = psomebar; @@ -69,7 +69,7 @@ void getcmd(const Block *block, char *output) if (delim[0] != '\0') { //only chop off newline if one is present at the end i = output[i-1] == '\n' ? i-1 : i; - strncpy(output+i, delim, delimLen); + strncpy(output+i, delim, delimLen); } else output[i++] = '\0'; @@ -207,12 +207,12 @@ void sighandler(int signum) writestatus(); } -void termhandler() +void termhandler(int signum) { statusContinue = 0; } -void sigpipehandler() +void sigpipehandler(int signum) { close(somebarFd); somebarFd = -1;