socsvn commit: r304471 - soc2016/yuanxunzhang/head/usr.sbin/eaps

yuanxunzhang at FreeBSD.org yuanxunzhang at FreeBSD.org
Fri Jun 3 05:59:27 UTC 2016


Author: yuanxunzhang
Date: Fri Jun  3 05:59:26 2016
New Revision: 304471
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=304471

Log:
  freeBSD:EAPS development

Modified:
  soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c

Modified: soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c
==============================================================================
--- soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Fri Jun  3 05:42:20 2016	(r304470)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Fri Jun  3 05:59:26 2016	(r304471)
@@ -48,7 +48,7 @@
 #include <unistd.h>
 
 /*
- * eaps - configure, and display eaps
+ * EAPS - configure, and display eaps
  */
 
 /*
@@ -101,7 +101,7 @@
 createdomain(int argc, char **argv)
 {
 	int error = 0;
-	struct eaps_d *eaps_new, *eaps;
+	struct eaps_d *eaps_new;
 	char *domain_name = *(++argv);
 
 	printf("Create eaps domain %s!\n", domain_name);
@@ -111,17 +111,6 @@
 	/* Add to eaps list */
 	SLIST_INSERT_HEAD(&head, eaps_new, eaps_entries);
 
-	if (SLIST_EMPTY(&head)) {
-		printf("No eaps Configuration!\n");
-	} else {
-
-		/* Display EAPS information*/
-		SLIST_FOREACH(eaps, &head, eaps_entries) {
-			printf("\t%s:\n", eaps->eaps_name);
-		}
-	}
-
-
 	exit(error);
 }
 
@@ -139,7 +128,7 @@
 	int error = 0;
 	struct eaps_d *eaps;
 
-	if (SLIST_EMPTY(&head)) {
+	if (SLIST_EMPTY(&fdsfds)) {
 		printf("No eaps Configuration!\n");
 	}
 


More information about the svn-soc-all mailing list