- markus@cvs.openbsd.org 2002/06/04 23:05:49
     [cipher.c monitor.c monitor_fdpass.c monitor_mm.c monitor_wrap.c]
     __FUNCTION__ -> __func__

NOTE: This includes all portable references also.
diff --git a/monitor_fdpass.c b/monitor_fdpass.c
index 5401ea4..0d7628f 100644
--- a/monitor_fdpass.c
+++ b/monitor_fdpass.c
@@ -24,7 +24,7 @@
  */
 
 #include "includes.h"
-RCSID("$OpenBSD: monitor_fdpass.c,v 1.2 2002/03/24 17:53:16 stevesk Exp $");
+RCSID("$OpenBSD: monitor_fdpass.c,v 1.3 2002/06/04 23:05:49 markus Exp $");
 
 #include <sys/uio.h>
 
@@ -64,14 +64,14 @@
 	msg.msg_iovlen = 1;
 
 	if ((n = sendmsg(socket, &msg, 0)) == -1)
-		fatal("%s: sendmsg(%d): %s", __FUNCTION__, fd,
+		fatal("%s: sendmsg(%d): %s", __func__, fd,
 		    strerror(errno));
 	if (n != 1)
 		fatal("%s: sendmsg: expected sent 1 got %d",
-		    __FUNCTION__, n);
+		    __func__, n);
 #else
 	fatal("%s: UsePrivilegeSeparation=yes not supported",
-	    __FUNCTION__);
+	    __func__);
 #endif
 }
 
@@ -102,24 +102,24 @@
 #endif
 
 	if ((n = recvmsg(socket, &msg, 0)) == -1)
-		fatal("%s: recvmsg: %s", __FUNCTION__, strerror(errno));
+		fatal("%s: recvmsg: %s", __func__, strerror(errno));
 	if (n != 1)
 		fatal("%s: recvmsg: expected received 1 got %d",
-		    __FUNCTION__, n);
+		    __func__, n);
 
 #ifdef HAVE_ACCRIGHTS_IN_MSGHDR
 	if (msg.msg_accrightslen != sizeof(fd))
-		fatal("%s: no fd", __FUNCTION__);
+		fatal("%s: no fd", __func__);
 #else
 	cmsg = CMSG_FIRSTHDR(&msg);
 	if (cmsg->cmsg_type != SCM_RIGHTS)
-		fatal("%s: expected type %d got %d", __FUNCTION__,
+		fatal("%s: expected type %d got %d", __func__,
 		    SCM_RIGHTS, cmsg->cmsg_type);
 	fd = (*(int *)CMSG_DATA(cmsg));
 #endif
 	return fd;
 #else
 	fatal("%s: UsePrivilegeSeparation=yes not supported",
-	    __FUNCTION__);
+	    __func__);
 #endif
 }