]> arthur.barton.de Git - netatalk.git/commitdiff
Added forward declarations to eliminate warnings.
authorsrittau <srittau>
Thu, 31 May 2001 18:36:53 +0000 (18:36 +0000)
committersrittau <srittau>
Thu, 31 May 2001 18:36:53 +0000 (18:36 +0000)
bin/megatron/macbin.c
bin/megatron/nad.c

index 98cca3b2959126881977eaa7febf13f6a4f258e9..d8d9b34ccb6ba34ccb7e8c7baa8dcd13f9fcff18 100644 (file)
  */
 #define HEADBUFSIZ     128
 
-u_short                updcrc();
+/*      Forward Declarations
+ */
+int bin_open(char *binfile, int flags, struct FHeader *fh, int options);
+int bin_close(int keepflag);
+int bin_read(int fork, char *buffer, int length);
+int bin_write(int fork, char *buffer, int length);
+int bin_header_read(struct FHeader *fh, int revision);
+int bin_header_write(struct FHeader *fh);
+int test_header(void);
+u_short updcrc();
 
 /*     Both input and output routines use this struct and the
        following globals; therefore this module can only be used
@@ -530,7 +539,7 @@ int bin_header_write( fh )
  * so, the check for byte 74 isn't very useful.
  */
 
-int test_header()
+int test_header(void)
 {
     const char          zeros[25] = "";
     u_int32_t          cc;
index 15370b987ffafd7c10d28ffa22e5b4fa47fd0298..feed7c5e2fc04a501a163f87e43f162bdf3c788f 100644 (file)
 
 static char            hexdig[] = "0123456789abcdef";
 
+/* Forward Declarations */
+int nad_open(char *path, int openflags, struct FHeader *fh, int options);
+int nad_header_read(struct FHeader *fh);
+int nad_header_write(struct FHeader *fh);
+int nad_read(int fork, char *forkbuf, int bufc);
+int nad_write(int fork, char *forkbuf, int bufc);
+int nad_close(int status);
+
 char *mtoupath( mpath )
     char       *mpath;
 {