Date: Fri, 3 Jun 2016 05:59:26 GMT From: yuanxunzhang@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r304471 - soc2016/yuanxunzhang/head/usr.sbin/eaps Message-ID: <201606030559.u535xQhE059930@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606030559.u535xQhE059930>