Fix missing function declarations to let mkhybrid build with clang-16
authorjca <jca@openbsd.org>
Thu, 7 Sep 2023 01:08:36 +0000 (01:08 +0000)
committerjca <jca@openbsd.org>
Thu, 7 Sep 2023 01:08:36 +0000 (01:08 +0000)
ok millert@

gnu/usr.sbin/mkhybrid/src/desktop.c
gnu/usr.sbin/mkhybrid/src/mac_label.c
gnu/usr.sbin/mkhybrid/src/volume.c

index 62ca669..40e258d 100644 (file)
@@ -36,6 +36,8 @@
 /* from "data.h" - libhfs routines */
 void d_putw(unsigned char *, short);
 void d_putl(unsigned char *, long);
+/* from volume.c */
+void write_fork(hfsfile *, long);
 
 extern hce_mem *hce;           /* libhfs/mkisofs extras */
 
index 0cffafb..1e594c1 100644 (file)
@@ -24,6 +24,9 @@
 #include "mac_label_proto.h"
 #include <mac_label.h>
 
+/* from libhfs_iso/data.h */
+short d_getw(unsigned char *);
+
 int
 gen_mac_label(defer *mac_boot)
 {
index 6f445ba..3dc4880 100644 (file)
 #include "write.h"
 #include <errno.h>
 
+/* from desktop.c */
+int make_desktop(hfsvol *, int);
+/* from libhfs_iso/hfs.c */
+void hfs_vsetbless(hfsvol *, unsigned long);
+
 static hfsvol *vol_save = 0;   /* used to "destroy" an HFS volume */
 
 int DECL(copy_to_mac_vol, (hfsvol *, struct directory *));