Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2016 03:51:20 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r304452 - soc2016/yuanxunzhang/head/usr.sbin/eaps
Message-ID:  <201606030351.u533pKDe029517@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }
 



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