Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2016 11:00:47 GMT
From:      yuanxunzhang@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r308016 - soc2016/yuanxunzhang/head/usr.sbin/eaps
Message-ID:  <201608191100.u7JB0llF088881@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuanxunzhang
Date: Fri Aug 19 11:00:47 2016
New Revision: 308016
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=308016

Log:
  EAPS: set switch mode interface

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 Aug 19 10:53:17 2016	(r308015)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Fri Aug 19 11:00:47 2016	(r308016)
@@ -249,8 +249,8 @@
 	printf("Debug print: set switch mode is %s!\n", mode);
 
 	//check the eaps switch mode
-	if ((mode != eaps_mode_message[EAPS_MODE_TRANSIT]) 
-		&& (mode != eaps_mode_message[EAPS_MODE_MASTER])) {
+	if ((strcmp(mode, eaps_mode_message[EAPS_MODE_TRANSIT]) != 0)  
+		&& strcmp(mode, eaps_mode_message[EAPS_MODE_MASTER]) != 0) {
 		err(1, "Wrong swith mode, swith mode should be transit or master!\n");
 	}
 



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