Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1686)

Unified Diff: third_party/fips181/randpass.cc

Issue 2571113002: Remove unnecessary typedefs in third_party/fips181. (Closed)
Patch Set: Solve for MSVC warning C4805. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/fips181/randpass.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « third_party/fips181/randpass.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698