From 756490a02d84288ee635a8aa33811e043ca10b44 Mon Sep 17 00:00:00 2001 From: jvech Date: Sat, 10 Jun 2023 21:13:02 -0500 Subject: add: style code improvments done --- src/obj.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/obj.c') diff --git a/src/obj.c b/src/obj.c index d832604..ea69f18 100644 --- a/src/obj.c +++ b/src/obj.c @@ -77,7 +77,7 @@ objCreate(const char *filename) // On error return NULL if (fi == NULL || mesh == NULL) { - fprintf(stderr, "objCreateMesh() Error: %s\n", strerror(errno)); + perror("objCreateMesh() Error"); fclose(fi); exit(1); } @@ -133,7 +133,13 @@ objCreate(const char *filename) } void -readF(char *line, Mesh *mesh, int meshIndex, struct Setv3 *v, struct Setv2 *vt, struct Setv3 *vn) +readF(char *line, + Mesh *mesh, + int meshIndex, + struct Setv3 *v, + struct Setv2 *vt, + struct Setv3 *vn + ) { Vertex vertexBuffer; struct Seti *f; -- cgit v1.2.3-70-g09d2