From 9530e7b13aae3594b1351cc0711354e403859d36 Mon Sep 17 00:00:00 2001
From: Devine Lu Linvega <aliceffekt@gmail.com>
Date: Thu, 19 Sep 2024 14:14:05 -0700
Subject: [PATCH] Format

---
 src/devices/file.c | 12 ++++++------
 src/uxn11.c        |  2 +-
 src/uxncli.c       |  2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/devices/file.c b/src/devices/file.c
index 56a1baf..1683ab4 100644
--- a/src/devices/file.c
+++ b/src/devices/file.c
@@ -217,7 +217,7 @@ is_dir_path(char *p)
 {
 	char c;
 	int saw_slash = 0;
-	while (c = *p++)
+	while((c = *p++))
 		saw_slash = c == DIR_SEP_CHAR;
 	return saw_slash;
 }
@@ -235,7 +235,7 @@ ensure_parent_dirs(char *p)
 	int ok = 1;
 	char c, *s = p;
 	for(; ok && (c = *p); p++) {
-		if (c == DIR_SEP_CHAR) {
+		if(c == DIR_SEP_CHAR) {
 			*p = '\0';
 			ok = dir_exists(s) || mkdir(s);
 			*p = c;
@@ -252,7 +252,7 @@ file_write(UxnFile *c, void *src, Uint16 len, Uint8 flags)
 	ensure_parent_dirs(c->current_filename);
 	if(c->state != FILE_WRITE && c->state != DIR_WRITE) {
 		reset(c);
-		if (is_dir_path(c->current_filename))
+		if(is_dir_path(c->current_filename))
 			c->state = DIR_WRITE;
 		else if((c->f = fopen(c->current_filename, (flags & 0x01) ? "ab" : "wb")) != NULL)
 			c->state = FILE_WRITE;
@@ -261,7 +261,7 @@ file_write(UxnFile *c, void *src, Uint16 len, Uint8 flags)
 		if((ret = fwrite(src, 1, len, c->f)) > 0 && fflush(c->f) != 0)
 			ret = 0;
 	}
-	if (c->state == DIR_WRITE) {
+	if(c->state == DIR_WRITE) {
 		ret = dir_exists(c->current_filename);
 	}
 	return ret;
@@ -271,7 +271,7 @@ static Uint16
 stat_fill(Uint8 *dest, Uint16 len, char c)
 {
 	Uint16 i;
-	for (i = 0; i < len; i++)
+	for(i = 0; i < len; i++)
 		*(dest++) = c;
 	return len;
 }
@@ -281,7 +281,7 @@ stat_size(Uint8 *dest, Uint16 len, off_t size)
 {
 	Uint16 i;
 	dest += len - 1;
-	for (i = 0; i < len; i++) {
+	for(i = 0; i < len; i++) {
 		*(dest--) = '0' + (Uint8)(size & 0xf);
 		size = size >> 4;
 	}
diff --git a/src/uxn11.c b/src/uxn11.c
index e9f59fc..a535ab3 100644
--- a/src/uxn11.c
+++ b/src/uxn11.c
@@ -271,7 +271,7 @@ main(int argc, char **argv)
 	int i = 1;
 	char *rom;
 	if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
-		fprintf(stdout, "Uxn11 - Varvara Emulator, 29 Aug 2024.\n");
+		fprintf(stdout, "Uxn11 - Varvara Emulator, 19 Sep 2024.\n");
 		exit(0);
 	}
 	rom = i == argc ? "boot.rom" : argv[i++];
diff --git a/src/uxncli.c b/src/uxncli.c
index 67b6e36..cf8d6f0 100644
--- a/src/uxncli.c
+++ b/src/uxncli.c
@@ -69,7 +69,7 @@ main(int argc, char **argv)
 	int i = 1;
 	char *rom;
 	if(i != argc && argv[i][0] == '-' && argv[i][1] == 'v') {
-		fprintf(stdout, "Uxncli - Console Varvara Emulator, 29 Aug 2024.\n");
+		fprintf(stdout, "Uxn11(cli) - Varvara Emulator, 19 Sep 2024.\n");
 		exit(0);
 	}
 	rom = i == argc ? "boot.rom" : argv[i++];