[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ftape-tools: FTBFS: Syntax error before '__FUNCTION__'



tags 318533 + patch
thanks

Hi,

A diff to fix the bug follows.  Unfortunately, I can't build it on my
big-endian powerpc system, so I'll have to rely on someone else to
build and test it.

Regards,
Roger


diff -urN ftape-tools-1.09.2002.03.21.original/src/ftformat/ftfmt-tapelib.c ftape-tools-1.09.2002.03.21/src/ftformat/ftfmt-tapelib.c
--- ftape-tools-1.09.2002.03.21.original/src/ftformat/ftfmt-tapelib.c	2000-07-23 23:47:59.000000000 +0100
+++ ftape-tools-1.09.2002.03.21/src/ftformat/ftfmt-tapelib.c	2005-07-22 18:11:41.092343104 +0100
@@ -437,7 +437,7 @@
 
     printf(_("Writing reference bursts ... "));
     if (qic_simple_command(tape_fd, 0, QIC_ENTER_FORMAT_MODE, -1, 0, NULL)) {
-	fprintf(stderr, "\n"__FUNCTION__ " %s", _("failed!\n"));
+	fprintf(stderr, "\n%s %s", __func__, _("failed!\n"));
 	return -1;
     }
     if (qic_simple_command(tape_fd, 0, QIC_WRITE_REFERENCE_BURST, -1, 940,
@@ -445,7 +445,7 @@
 	return -1;
     }
     if (!(status & QIC_STATUS_REFERENCED)) {
-	fprintf(stderr, "\n"__FUNCTION__ " %s", _("failed!\n"));
+	fprintf(stderr, "\n%s %s", __func__, _("failed!\n"));
 	return -1;
     }
     printf(_("done.\n"));
@@ -845,7 +845,7 @@
     struct mtftformat_virtual fmtc;
 
     if (qic_simple_command(tape_fd, 0, QIC_ENTER_FORMAT_MODE, -1, 0, NULL)) {
-	fprintf(stderr, __FUNCTION__ " %s", _("failed!\n"));		
+	fprintf(stderr, "%s %s", __func__, _("failed!\n"));		
 	return -1;
     }
     trk = 0;


Regards,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.



Reply to: