Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 May 2008 22:09:29 GMT
From:      Vincenzo Iozzo <snagg@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 141996 for review
Message-ID:  <200805212209.m4LM9TgJ033980@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=141996

Change 141996 by snagg@snagg_macosx on 2008/05/21 22:09:21

	style fixes

Affected files ...

.. //depot/projects/soc2008/snagg-audit/sys/security/audit/audit_pipe.c#14 edit

Differences ...

==== //depot/projects/soc2008/snagg-audit/sys/security/audit/audit_pipe.c#14 (text) ====

@@ -257,7 +257,8 @@
 	struct audit_pipe_preselect_event *event;
 	struct audit_pipe_preselect_event *ev_a;
 	
-	ev_a = malloc(sizeof(struct audit_pipe_preselect_event), M_AUDIT_PIPE_PRESELECT_EVENT, M_WAITOK);
+	ev_a = malloc(sizeof(struct audit_pipe_preselect_event), 
+					M_AUDIT_PIPE_PRESELECT_EVENT, M_WAITOK);
 	ev_a->app_event = app_event;
 	ev_a->app_flag = event_flag;
 	
@@ -265,7 +266,8 @@
 	
 	TAILQ_FOREACH(app, &ap->ap_preselect_list, app_list) {
 		if(app->app_pid == app_pid) {
-			if(app_event != -1)  { /* Just skip if we are interested only in the pid*/
+			/* Just skip if we are interested only in the pid. */
+			if(app_event != -1)  {
 				event = bsearch(ev_a, (app->app_auevents), app->app_event_len,
 						sizeof(struct audit_pipe_preselect_event), 
 						audit_pipe_compare_preselect_event);
@@ -595,10 +597,12 @@
 		app = audit_pipe_preselect_find_event(ap, event, app_pid, sorf);
 		if(app != NULL)
 			return (1);
+			
 	case AUDITPIPE_PRESELECT_MODE_PID:
 		app = audit_pipe_preselect_find_event(ap, -1, app_pid, -1);
 		if(app != NULL)
 			return (1);
+			
 	default:
 		panic("audit_pipe_preselect_check: mode %d",
 		    ap->ap_preselect_mode);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805212209.m4LM9TgJ033980>