PERFORCE change 86777 for review

Wayne Salamon wsalamon at FreeBSD.org
Tue Nov 15 01:00:56 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=86777

Change 86777 by wsalamon at gretsch on 2005/11/15 00:59:55

	Pass in the correct type of object for the pipe() call: an array
	of file descriptors and not a single one.

Affected files ...

.. //depot/projects/trustedbsd/audit3/tools/regression/audit/test/ipc/tipc.c#4 edit

Differences ...

==== //depot/projects/trustedbsd/audit3/tools/regression/audit/test/ipc/tipc.c#4 (text+ko) ====

@@ -37,12 +37,12 @@
 
 #define AUDIT_CLASSES (AU_IPC)
 
-	int fd;
+	int filedes[2];
 
 	AUT_INIT();
 
 	/* Generate an AUE_PIPE audit record */
-	if (pipe(&fd) < 0) 
+	if (pipe(filedes) < 0) 
 		AUT_PERROR("pipe()");
 	aut_assert(AUE_PIPE);
 
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message



More information about the trustedbsd-cvs mailing list