socsvn commit: r304452 - soc2016/yuanxunzhang/head/usr.sbin/eaps
yuanxunzhang at FreeBSD.org
yuanxunzhang at FreeBSD.org
Fri Jun 3 03:51:21 UTC 2016
Author: yuanxunzhang
Date: Fri Jun 3 03:51:19 2016
New Revision: 304452
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=304452
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 03:28:32 2016 (r304451)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c Fri Jun 3 03:51:19 2016 (r304452)
@@ -97,7 +97,15 @@
createdomain(int argc, char **argv)
{
int error = 0;
+ struct eaps_d *eaps_new;
+
warnx("Create EAPS domain %s", *(++argv));
+ eaps_new = (struct eaps_d *) malloc (sizeof(struct eaps_d));
+ strlcpy(eaps_new->eaps_name, *(++argv), sizeof(eaps_new->eaps_name));
+
+ /* Add to keymap list */
+ SLIST_INSERT_HEAD(&eaps_head, eaps_new, eaps_entries);
+
exit(error);
}
More information about the svn-soc-all
mailing list