aboutsummaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1999-02-27 12:17:40 +0000
committerRalf S. Engelschall <rse@openssl.org>1999-02-27 12:17:40 +0000
commit74d7abc2ab54e725f7cfbc2fa7bad95f93e4dc63 (patch)
treef61e38dc0ebc1355bef750e0dd56f011587eaf1a /crypto
parentc707fb2741b34018de6bdf2e45cba4b4b6ab38c0 (diff)
downloadopenssl-74d7abc2ab54e725f7cfbc2fa7bad95f93e4dc63.zip
openssl-74d7abc2ab54e725f7cfbc2fa7bad95f93e4dc63.tar.gz
openssl-74d7abc2ab54e725f7cfbc2fa7bad95f93e4dc63.tar.bz2
Get rid of remaining C++-style comments which strict C compilers hate.
(Pointed out by Carlos Amengual).
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bio/bss_sock.c2
-rw-r--r--crypto/bn/exp.c6
-rw-r--r--crypto/bn/test.c10
-rw-r--r--crypto/comp/comp_err.c2
-rw-r--r--crypto/rand/md_rand.c14
5 files changed, 17 insertions, 17 deletions
diff --git a/crypto/bio/bss_sock.c b/crypto/bio/bss_sock.c
index 299787a..cfd2f11 100644
--- a/crypto/bio/bss_sock.c
+++ b/crypto/bio/bss_sock.c
@@ -385,7 +385,7 @@ int i;
err=get_last_sys_error();
#endif
-#if defined(WINDOWS) && 0 /* more microsoft stupidity *//* perhaps not? Ben 4/1/99 */
+#if defined(WINDOWS) && 0 /* more microsoft stupidity? perhaps not? Ben 4/1/99 */
if ((i == -1) && (err == 0))
return(1);
#endif
diff --git a/crypto/bn/exp.c b/crypto/bn/exp.c
index 6a24fee..dd49d96 100644
--- a/crypto/bn/exp.c
+++ b/crypto/bn/exp.c
@@ -43,12 +43,12 @@ char *argv[];
ms_time_get(start);
for (i=0; i<num; i++)
{
- //bn_mull(&r,&a,&b,&ctx);
- //BN_sqr(&r,&a,&ctx);
+ /* bn_mull(&r,&a,&b,&ctx); */
+ /* BN_sqr(&r,&a,&ctx); */
BN_mod_exp_mont(&r,&a,&b,&c,&ctx,&mont);
}
ms_time_get(end);
- d=ms_time_diff(start,end)/* *50/33 /**/;
+ d=ms_time_diff(start,end)/* *50/33 */;
printf("%5d bit:%6.2f %6d %6.4f %4d m_set(%5.4f)\n",size,
d,num,d/num,(int)((d/num)*mod),md/10.0);
num/=8;
diff --git a/crypto/bn/test.c b/crypto/bn/test.c
index e23f215..46fdc9c 100644
--- a/crypto/bn/test.c
+++ b/crypto/bn/test.c
@@ -120,18 +120,18 @@ s0.max=bl.top; s1.max=bh.top;
t3.top=(t2.top > words)?words:t2.top;
t3.neg=t2.neg;
t3.max=t3.top;
-// BN_print_fp(stdout,&s1); printf(" s1\n");
-// BN_print_fp(stdout,&t2); printf(" middle value\n");
-// BN_print_fp(stdout,&t3); printf(" low middle value\n");
+/* BN_print_fp(stdout,&s1); printf(" s1\n"); */
+/* BN_print_fp(stdout,&t2); printf(" middle value\n"); */
+/* BN_print_fp(stdout,&t3); printf(" low middle value\n"); */
BN_sub(&t1,&s1,&t3);
if (t1.neg)
{
-//printf("neg fixup\n"); //BN_print_fp(stdout,&t1); printf(" before\n");
+/*printf("neg fixup\n"); BN_print_fp(stdout,&t1); printf(" before\n"); */
BN_lshift(&t2,BN_value_one(),words*32);
BN_add(&t1,&t2,&t1);
BN_mask_bits(&t1,words*32);
-// BN_print_fp(stdout,&t1); printf(" after\n");
+/* BN_print_fp(stdout,&t1); printf(" after\n"); */
}
/* al*bl == high(al*bl)<<words+s0 */
BN_lshift(&t1,&t1,words*32);
diff --git a/crypto/comp/comp_err.c b/crypto/comp/comp_err.c
index 7b68fc1..e688159 100644
--- a/crypto/comp/comp_err.c
+++ b/crypto/comp/comp_err.c
@@ -1,4 +1,4 @@
-/* lib//_err.c */
+/* crypto/comp/comp_err.c */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index bef4245..47692cb 100644
--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -346,13 +346,13 @@ int num;
* <URL:http://www.microsoft.com/kb/developr/win_dk/q97193.htm>;
* the original copyright message is:
*
-// (C) Copyright Microsoft Corp. 1993. All rights reserved.
-//
-// You have a royalty-free right to use, modify, reproduce and
-// distribute the Sample Files (and/or any modified version) in
-// any way you find useful, provided that you agree that
-// Microsoft has no warranty obligations or liability for any
-// Sample Application Files which are modified.
+ * (C) Copyright Microsoft Corp. 1993. All rights reserved.
+ *
+ * You have a royalty-free right to use, modify, reproduce and
+ * distribute the Sample Files (and/or any modified version) in
+ * any way you find useful, provided that you agree that
+ * Microsoft has no warranty obligations or liability for any
+ * Sample Application Files which are modified.
*/
/*
* I have modified the loading of bytes via RAND_seed() mechanism since