pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
1996-09-22
1996-09-22 23:20:00 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
99e21288f1352dbed8feec8f8e604adb58a55331 (
8
lines) (+
6
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
workaround for sun CC included in f_crypt
Rev: src/builtin_functions.c:1.2
673:
saltp=sp[1-args].u.string->str; } else {
-
salt[0] = choise[
my_rand
()
%
strlen(choise)];
-
salt[1] = choise[
my_rand
()
%
strlen(choise)];
+
unsigned int foo; /* Sun CC want's this :( */
+
foo=my_rand();
+
salt[0] = choise[
foo %
(
unsigned int
)
strlen(choise)];
+
foo=my_rand();
+
salt[1] = choise[
foo %
(
unsigned int
)
strlen(choise)];
saltp=salt; } #ifdef HAVE_CRYPT