[xiph-commits] r3667 - liboggz/trunk/src/tools/oggz-chop

giles at svn.annodex.net giles at svn.annodex.net
Thu Jul 31 08:08:10 PDT 2008


Author: giles
Date: 2008-07-31 08:08:09 -0700 (Thu, 31 Jul 2008)
New Revision: 3667

Modified:
   liboggz/trunk/src/tools/oggz-chop/header.c
Log:
MacOS requires unistd.h for off_t.

Using oggz_off_t is probably a better idea, but the rest of the file is 
trying hard to be generic. Also declare header_content_type_ogg() with
and explicit void for consistency.


Modified: liboggz/trunk/src/tools/oggz-chop/header.c
===================================================================
--- liboggz/trunk/src/tools/oggz-chop/header.c	2008-07-31 09:16:15 UTC (rev 3666)
+++ liboggz/trunk/src/tools/oggz-chop/header.c	2008-07-31 15:08:09 UTC (rev 3667)
@@ -3,6 +3,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 
 #include "httpdate.h"
 
@@ -25,7 +26,7 @@
 }
 
 int
-header_content_type_ogg ()
+header_content_type_ogg (void)
 {
   return printf (CONTENT_TYPE_OGG);
 }



More information about the commits mailing list