This repository has been archived on 2024-03-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
rpmbuild/vortexdiag/vortexdiag-1.09.patch

22 lines
838 B
Diff

diff -uNr vortexdiag-1.09/vortex-diag.c vortexdiag-1.09-fixed/vortex-diag.c
--- vortexdiag-1.09/vortex-diag.c Tue Aug 17 23:24:08 1999
+++ vortexdiag-1.09-fixed/vortex-diag.c Tue Aug 17 23:51:57 1999
@@ -39,6 +39,7 @@
#include <getopt.h>
#include <strings.h>
#include <errno.h>
+#include <string.h>
#if defined(__linux__) && __GNU_LIBRARY__ == 1
#include <asm/io.h> /* Newer libraries use <sys/io.h> instead. */
#else
@@ -46,8 +47,8 @@
#endif
/* No libmii.h (yet) */
-extern show_mii_details(int ioaddr, int phy_id);
-extern monitor_mii(int ioaddr, int phy_id);
+extern void show_mii_details(int ioaddr, int phy_id);
+extern int monitor_mii(int ioaddr, int phy_id);
/* No libflash.h */
extern int flash_show(long addr_ioaddr, long data_ioaddr);
extern int flash_dump(long addr_ioaddr, long data_ioaddr, char *filename);