| Index: third_party/fips181/randpass.cc
|
| diff --git a/third_party/fips181/randpass.cc b/third_party/fips181/randpass.cc
|
| index 8aded1529362b0c08e71c4cb53724ba5b3e33c5f..68dddeea96199b4d58f5679356f31c85a4a7000f 100644
|
| --- a/third_party/fips181/randpass.cc
|
| +++ b/third_party/fips181/randpass.cc
|
| @@ -36,7 +36,6 @@
|
| #include <time.h>
|
|
|
| #include "base/rand_util.h"
|
| -#include "owntypes.h"
|
| #include "randpass.h"
|
| #include "smbl.h"
|
|
|
| @@ -143,18 +142,18 @@ gen_rand_symbol (char *symbol, unsigned int mode)
|
| ** INPUT:
|
| ** char - symbol.
|
| ** OUTPUT:
|
| -** int - 0 - not restricted
|
| -** 1 - restricted
|
| +** bool - false - not restricted
|
| +** true - restricted
|
| ** NOTES:
|
| ** none.
|
| */
|
| -int
|
| +bool
|
| is_restricted_symbol (char symbol)
|
| {
|
| int j = 0;
|
| for (j = 0; j <= 93 ; j++)
|
| if (symbol == smbl[j].ch)
|
| if ((S_RS & smbl[j].type) > 0)
|
| - return(1);
|
| - return(0);
|
| + return(true);
|
| + return(false);
|
| }
|
|
|