--- MITgcm/tools/mpack-1.6/part.c 2008/02/23 01:28:27 1.2 +++ MITgcm/tools/mpack-1.6/part.c 2008/02/23 03:30:03 1.3 @@ -27,7 +27,6 @@ */ #include -#include #include #include "part.h" @@ -59,7 +58,7 @@ /* * Close and free 'part'. */ -void part_close(struct part *part) +int part_close(struct part *part) { fclose(part->infile); if (part->buf) free(part->buf); @@ -78,7 +77,8 @@ /* * Add to 'part' the multipart boundary 'boundary'. */ -void part_addboundary(struct part *part, char *boundary) +int +part_addboundary(struct part *part, char *boundary) { /* Grow boundary array if necessary */ if (part->boundary_num == part->boundary_alloc) { @@ -165,7 +165,8 @@ * Leaves room in the input buffer to push back an additional single * character using the prot_ungetc() macro. */ -void part_ungets(char *s, struct part *part) +int +part_ungets(char *s, struct part *part) { int len = strlen(s); int i;