Skip to content

Commit 448b10b

Browse files
committed
cleanup
1 parent 067bea4 commit 448b10b

File tree

3 files changed

+154
-105
lines changed

3 files changed

+154
-105
lines changed

create_fractal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
typedef struct _Img{
22
int width;
33
int height;
4-
int * data;
4+
unsigned char * data;
55
} cImg;
66

77

main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include <stdio.h>
22
#include <stdlib.h>
33
#include <time.h>
4+
#include "create_fractal.h"
45

56
// call this function to start a nanosecond-resolution timer
67
struct timespec timer_start(){
@@ -17,15 +18,14 @@ long timer_end(struct timespec start_time){
1718
return diffInNanos;
1819
}
1920

20-
#include "create_fractal.c"
2121

2222
int main(int argc, const char *argv[], const char * env[])
2323
{
2424
int width = 1500;
2525
int height = 1000;
2626
int iters = 20;
2727
FILE * fid = NULL;
28-
Img img;
28+
cImg img;
2929
struct timespec vartime;
3030
long time_elapsed_nanos;
3131
img.width = width;

0 commit comments

Comments
 (0)