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

yuanxunzhang at FreeBSD.org yuanxunzhang at FreeBSD.org
Mon Aug 22 10:39:10 UTC 2016


Author: yuanxunzhang
Date: Mon Aug 22 10:39:09 2016
New Revision: 308165
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=308165

Log:
  EAPS: fix bug

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	Mon Aug 22 10:24:19 2016	(r308164)
+++ soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c	Mon Aug 22 10:39:09 2016	(r308165)
@@ -320,7 +320,7 @@
 		err(1, "EAPS domain name is NULL!");
 	} 
 
-	uint16_t hellotime = atoi(*(++argv));
+	int16_t hellotime = atoi(*(++argv));
 	printf("Debug print: set_eaps_hellotime %d!\n", hellotime);
 
 	// hellotime must be greater than 0
@@ -352,7 +352,7 @@
 		err(1, "EAPS domain name is NULL!");
 	} 
 
-	uint16_t failtime = atoi(*(++argv));
+	int16_t failtime = atoi(*(++argv));
 	printf("Debug print: set_eaps_failtime %d!\n", failtime);
 
 	// get current value of hellotime, because failtime must be greater than hellotime


More information about the svn-soc-all mailing list