aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-03-01 10:08:44 -0500
committeriamcheeseman <[hidden email]>2026-03-01 10:08:44 -0500
commitb63d68c2285cbec3f2041f521ff5df85c64edf3e (patch)
tree674ad2adf7ee9e09557398e444d8c97f86797d7c
parentd01a3ec1075746978ced371a4bb1ede7cf1cbb7a (diff)
make init function names more clear
-rw-r--r--src/tsar.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tsar.c b/src/tsar.c
index f97e8d2..7277d28 100644
--- a/src/tsar.c
+++ b/src/tsar.c
@@ -34,7 +34,7 @@ void die(const char* fmt, ...) {
void draw_bar(void) {
}
-void init(void) {
+void init_x(void) {
display = XOpenDisplay(NULL);
if (display == NULL) {
die("could not open X display");
@@ -70,14 +70,14 @@ void init(void) {
XFlush(display);
}
-void deinit(void) {
+void deinit_x(void) {
XUnmapWindow(display, win);
XDestroyWindow(display, win);
}
int main(void) {
init_pipe();
- init();
+ init_x();
while (true) {
XEvent ev;
@@ -89,6 +89,6 @@ int main(void) {
await_change();
}
- deinit();
+ deinit_x();
return 0;
}