Permalink
Browse files

fixed bad pointer type

  • Loading branch information...
1 parent a397cfd commit a508c3dbc12aa376a3e8672aa4742bc507516c75 Alan Dipert committed Dec 16, 2008
Showing with 4 additions and 3 deletions.
  1. +3 −2 Makefile
  2. +1 −1 fetch.c
View
5 Makefile
@@ -1,6 +1,7 @@
CC=gcc
-LIBS=cgic/libcgic.a -lcurl
-INCLUDE=-Icgic
+LIBS=cgic/libcgic.a -lcurl -lfcgi
+FCGI_INCLUDE=-I/opt/include
+INCLUDE=-Icgic $(FCGI_INCLUDE)
CFLAGS+=-g -Wall
#CFLAGS+=-O2
OBJECTS+=main.o fetch.o cache.o error.o request.o debug.o
View
2 fetch.c
@@ -23,7 +23,7 @@ int returnFile(char *filename) {
/* A nice big buffer size */
int buf_size = 512;
char buf[buf_size];
- int *bufptr = &buf[0];
+ char *bufptr = &buf[0];
int obj_size = sizeof(char);
/* The number of objects read */

0 comments on commit a508c3d

Please sign in to comment.