diff --git a/algo.h b/algo.h
index 8cd4c9b0a09329c78dc31e536fd48386544781c5..955864bd57438068e0d65244f315a8d79ff03d51 100644
--- a/algo.h
+++ b/algo.h
@@ -76,8 +76,8 @@ struct dropbear_cipher_mode {
 struct dropbear_hash {
 	const struct ltc_hash_descriptor *hash_desc;
 	const unsigned long keysize;
-	// hashsize may be truncated from the size returned by hash_desc,
-	// eg sha1-96
+	/* hashsize may be truncated from the size returned by hash_desc,
+	   eg sha1-96 */
 	const unsigned char hashsize;
 };
 
diff --git a/cli-agentfwd.c b/cli-agentfwd.c
index ba07f542b53c21aa2dafe6e6b4e9570ec4ca38f4..b0c589bc5ba2adcd687a69baeb733dff56c509c4 100644
--- a/cli-agentfwd.c
+++ b/cli-agentfwd.c
@@ -73,8 +73,8 @@ static int connect_agent() {
 	return fd;
 }
 
-// handle a request for a connection to the locally running ssh-agent
-// or forward.
+/* handle a request for a connection to the locally running ssh-agent
+   or forward. */
 static int new_agent_chan(struct Channel * channel) {
 
 	int fd = -1;
@@ -94,7 +94,6 @@ static int new_agent_chan(struct Channel * channel) {
 	channel->readfd = fd;
 	channel->writefd = fd;
 
-	// success
 	return 0;
 }
 
diff --git a/cli-chansession.c b/cli-chansession.c
index b30fe43033461a177eb669bbee1f1fc0d82910be..ed80453a31157c9736175c3a521a7e2011f6ad3b 100644
--- a/cli-chansession.c
+++ b/cli-chansession.c
@@ -433,7 +433,7 @@ void cli_send_chansess_request() {
 
 }
 
-// returns 1 if the character should be consumed, 0 to pass through
+/* returns 1 if the character should be consumed, 0 to pass through */
 static int
 do_escape(unsigned char c) {
 	switch (c) {
@@ -442,10 +442,10 @@ do_escape(unsigned char c) {
 			return 1;
 			break;
 		case 0x1a:
-			// ctrl-z
+			/* ctrl-z */
 			cli_tty_cleanup();
 			kill(getpid(), SIGTSTP);
-			// after continuation
+			/* after continuation */
 			cli_tty_setup();
 			cli_ses.winchange = 1;
 			return 1;
@@ -459,8 +459,8 @@ void cli_escape_handler(struct Channel* UNUSED(channel), unsigned char* buf, int
 	char c;
 	int skip_char = 0;
 
-	// only handle escape characters if they are read one at a time. simplifies
-	// the code and avoids nasty people putting ~. at the start of a line to paste 
+	/* only handle escape characters if they are read one at a time. simplifies 
+	   the code and avoids nasty people putting ~. at the start of a line to paste  */
 	if (*len != 1) {
 		cli_ses.last_char = 0x0;
 		return;
diff --git a/cli-main.c b/cli-main.c
index 3ebde8a29e21e6a4cf13e6fa37aa428dd9813bcd..aa891deadae8dfc317e234bfdcdd836585592902 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -143,4 +143,4 @@ static void cli_proxy_cmd(int *sock_in, int *sock_out) {
 		*sock_in = *sock_out = -1;
 	}
 }
-#endif // ENABLE_CLI_PROXYCMD
+#endif /* ENABLE_CLI_PROXYCMD */
diff --git a/cli-runopts.c b/cli-runopts.c
index d20928b39635fce3b27950f922538f2f9968fc61..9877740e55f760555f8fe7a0d034a1e7f02ebb7d 100644
--- a/cli-runopts.c
+++ b/cli-runopts.c
@@ -216,7 +216,7 @@ void cli_getopts(int argc, char ** argv) {
 			switch (argv[i][1]) {
 				case 'y': /* always accept the remote hostkey */
 					if (cli_opts.always_accept_key) {
-						// twice means no checking at all
+						/* twice means no checking at all */
 						cli_opts.no_hostkey_check = 1;
 					}
 					cli_opts.always_accept_key = 1;
@@ -481,7 +481,7 @@ multihop_passthrough_args() {
 		sign_key * key = (sign_key*)iter->item;
 		len += 3 + strlen(key->filename);
 	}
-	len += 30; // space for -W <size>, terminator.
+	len += 30; /* space for -W <size>, terminator. */
 	ret = m_malloc(len);
 	total = 0;
 
@@ -619,7 +619,7 @@ static void parse_hostname(const char* orighostarg) {
 
 	port = strchr(cli_opts.remotehost, '%');
 	if (!port)  {
-		// legacy separator
+		/* legacy separator */
 		port = strchr(cli_opts.remotehost, '/');
 	}
 	if (port) {
diff --git a/cli-session.c b/cli-session.c
index e2eae26c79d8c72369cdf6b5ec4e8ad9f6db7201..d445d86272a5da7a501d8eab2a30e7843f9f6c5d 100644
--- a/cli-session.c
+++ b/cli-session.c
@@ -175,7 +175,7 @@ static void send_msg_service_request(char* servicename) {
 }
 
 static void recv_msg_service_accept(void) {
-	// do nothing, if it failed then the server MUST have disconnected
+	/* do nothing, if it failed then the server MUST have disconnected */
 }
 
 /* This function drives the progress of the session - it initiates KEX,
diff --git a/cli-tcpfwd.c b/cli-tcpfwd.c
index 0f47dcc2e8e74b9048600eccae335722c8553514..218a6ab431033b60956bbd98969855213b01a3c1 100644
--- a/cli-tcpfwd.c
+++ b/cli-tcpfwd.c
@@ -193,8 +193,8 @@ void setup_remotetcp() {
 		struct TCPFwdEntry *fwd = (struct TCPFwdEntry*)iter->item;
 		if (!fwd->listenaddr)
 		{
-			// we store the addresses so that we can compare them
-			// when the server sends them back
+			/* we store the addresses so that we can compare them
+			   when the server sends them back */
 			if (opts.listen_fwd_all) {
 				fwd->listenaddr = m_strdup("");
 			} else {
diff --git a/common-algo.c b/common-algo.c
index 621a8cbfaccaaed777536d631fcf499b219d274c..e57f37cdc4977fa13a3c60ff8ca8cf7210f61a44 100644
--- a/common-algo.c
+++ b/common-algo.c
@@ -395,7 +395,7 @@ algo_type * buf_match_algo(buffer* buf, algo_type localalgos[],
 	for (i = 0; i < clicount; i++) {
 		for (j = 0; j < servcount; j++) {
 			if (!(servnames[j] && clinames[i])) {
-				// unusable algos are NULL
+				/* unusable algos are NULL */
 				continue;
 			}
 			if (strcmp(servnames[j], clinames[i]) == 0) {
@@ -458,7 +458,7 @@ get_algo_usable(algo_type algos[], const char * algo_name)
 	return 0;
 }
 
-#endif // DROPBEAR_NONE_CIPHER
+#endif /* DROPBEAR_NONE_CIPHER */
 
 #ifdef ENABLE_USER_ALGO_LIST
 
@@ -539,4 +539,4 @@ check_user_algos(const char* user_algo_list, algo_type * algos,
 	memcpy(algos, new_algos, sizeof(*new_algos) * (num_ret+1));
 	return num_ret;
 }
-#endif // ENABLE_USER_ALGO_LIST
+#endif /* ENABLE_USER_ALGO_LIST */
diff --git a/common-kex.c b/common-kex.c
index 2af62533e38581b86f354a38c5bf7f66eb40c19a..d627fd7974eb4eead7741e871cae373b809bf43c 100644
--- a/common-kex.c
+++ b/common-kex.c
@@ -685,7 +685,7 @@ void free_kexecdh_param(struct kex_ecdh_param *param) {
 void kexecdh_comb_key(struct kex_ecdh_param *param, buffer *pub_them,
 		sign_key *hostkey) {
 	const struct dropbear_kex *algo_kex = ses.newkeys->algo_kex;
-	// public keys from client and server
+	/* public keys from client and server */
 	ecc_key *Q_C, *Q_S, *Q_them;
 
 	Q_them = buf_get_ecc_raw_pubkey(pub_them, algo_kex->ecc_curve);
diff --git a/common-session.c b/common-session.c
index 470d1f69064b78f786bafa109a332dd83e10f3db..a300138f1fc2bcdcbfa5694d1163d9a834fcf72e 100644
--- a/common-session.c
+++ b/common-session.c
@@ -266,7 +266,7 @@ void session_cleanup() {
 void send_session_identification() {
 	buffer *writebuf = buf_new(strlen(LOCAL_IDENT "\r\n") + 1);
 	buf_putbytes(writebuf, LOCAL_IDENT "\r\n", strlen(LOCAL_IDENT "\r\n"));
-	buf_putbyte(writebuf, 0x0); // packet type
+	buf_putbyte(writebuf, 0x0); /* packet type */
 	buf_setpos(writebuf, 0);
 	enqueue(&ses.writequeue, writebuf);
 }
diff --git a/crypto_desc.h b/crypto_desc.h
index ff04066bd2dc804174a700eac8b5fca05b18aaaf..d05096b4023110a1d4cc5957d72c6ef78a3a0b30 100644
--- a/crypto_desc.h
+++ b/crypto_desc.h
@@ -5,5 +5,5 @@ void crypto_init();
 
 extern int dropbear_ltc_prng;
 
-#endif // _CRYPTO_DESC_H
+#endif /* _CRYPTO_DESC_H */
 
diff --git a/ecc.c b/ecc.c
index e90fb6d4d947d426ec52c59f3ddab2f63fc407c7..4bfe51a93b9b4c9f8079e141dea35f3bf677755c 100644
--- a/ecc.c
+++ b/ecc.c
@@ -80,8 +80,8 @@ ecc_key * new_ecc_key(void) {
 	return key;
 }
 
-// Copied from libtomcrypt ecc_import.c (version there is static), modified
-// for different mp_int pointer without LTC_SOURCE
+/* Copied from libtomcrypt ecc_import.c (version there is static), modified
+   for different mp_int pointer without LTC_SOURCE */
 static int ecc_is_point(ecc_key *key)
 {
 	mp_int *prime, *b, *t1, *t2;
@@ -191,7 +191,7 @@ ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *c
 		goto out;
 	}
 
-   // SEC1 3.2.3.1 Check that Q != 0
+   /* SEC1 3.2.3.1 Check that Q != 0 */
 	if (mp_cmp_d(key->pubkey.x, 0) == LTC_MP_EQ) {
 		TRACE(("failed, x == 0"))
 		goto out;
@@ -216,8 +216,8 @@ ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *c
 
 }
 
-// a modified version of libtomcrypt's "ecc_shared_secret" to output
-// a mp_int instead.
+/* a modified version of libtomcrypt's "ecc_shared_secret" to output
+   a mp_int instead. */
 mp_int * dropbear_ecc_shared_secret(ecc_key *public_key, ecc_key *private_key)
 {
 	ecc_point *result = NULL;
diff --git a/ecc.h b/ecc.h
index 9744de2b46297a3d2fad92ecf239d04974181c0e..40213f454be6441456e9f144fe5abfe55e12e331 100644
--- a/ecc.h
+++ b/ecc.h
@@ -9,8 +9,8 @@
 #ifdef DROPBEAR_ECC
 
 struct dropbear_ecc_curve {
-	int ltc_size; // to match the byte sizes in ltc_ecc_sets[]
-	const ltc_ecc_set_type *dp; // curve domain parameters
+	int ltc_size; /* to match the byte sizes in ltc_ecc_sets[] */
+	const ltc_ecc_set_type *dp; /* curve domain parameters */
 	const struct ltc_hash_descriptor *hash_desc;
 	const unsigned char *name;
 };
@@ -23,8 +23,8 @@ extern struct dropbear_ecc_curve *dropbear_ecc_curves[];
 void dropbear_ecc_fill_dp();
 struct dropbear_ecc_curve* curve_for_dp(const ltc_ecc_set_type *dp);
 
-// "pubkey" refers to a point, but LTC uses ecc_key structure for both public
-// and private keys
+/* "pubkey" refers to a point, but LTC uses ecc_key structure for both public
+   and private keys */
 void buf_put_ecc_raw_pubkey_string(buffer *buf, ecc_key *key);
 ecc_key * buf_get_ecc_raw_pubkey(buffer *buf, const struct dropbear_ecc_curve *curve);
 int buf_get_ecc_privkey_string(buffer *buf, ecc_key *key);
@@ -33,4 +33,4 @@ mp_int * dropbear_ecc_shared_secret(ecc_key *pub_key, ecc_key *priv_key);
 
 #endif
 
-#endif // _DROPBEAR_ECC_H
\ No newline at end of file
+#endif /* _DROPBEAR_ECC_H */
diff --git a/ecdsa.c b/ecdsa.c
index 05912e2479b08aa0e25c0fa8913c616b56867bcd..195121f1799006901bab35c0840142ca0d3deee4 100644
--- a/ecdsa.c
+++ b/ecdsa.c
@@ -35,7 +35,7 @@ enum signkey_type ecdsa_signkey_type(ecc_key * key) {
 }
 
 ecc_key *gen_ecdsa_priv_key(unsigned int bit_size) {
-	const ltc_ecc_set_type *dp = NULL; // curve domain parameters
+	const ltc_ecc_set_type *dp = NULL; /* curve domain parameters */
 	ecc_key *new_key = NULL;
 	switch (bit_size) {
 #ifdef DROPBEAR_ECC_256
@@ -82,9 +82,9 @@ ecc_key *buf_get_ecdsa_pub_key(buffer* buf) {
 	struct dropbear_ecc_curve **curve;
 	ecc_key *new_key = NULL;
 
-	// string   "ecdsa-sha2-[identifier]"
+	/* string   "ecdsa-sha2-[identifier]" */
 	key_ident = buf_getstring(buf, &key_ident_len);
-	// string   "[identifier]"
+	/* string   "[identifier]" */
 	identifier = buf_getstring(buf, &identifier_len);
 
 	if (key_ident_len != identifier_len + strlen("ecdsa-sha2-")) {
@@ -106,7 +106,7 @@ ecc_key *buf_get_ecdsa_pub_key(buffer* buf) {
 		goto out;
 	}
 
-	// string Q
+	/* string Q */
 	q_buf = buf_getstringbuf(buf);
 	new_key = buf_get_ecc_raw_pubkey(q_buf, *curve);
 
@@ -183,7 +183,7 @@ void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf) {
 	}
 
 	for (;;) {
-		ecc_key R_key; // ephemeral key
+		ecc_key R_key; /* ephemeral key */
 		if (ecc_make_key_ex(NULL, dropbear_ltc_prng, &R_key, key->dp) != CRYPT_OK) {
 			goto out;
 		}
@@ -191,7 +191,7 @@ void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf) {
 			goto out;
 		}
 		if (ltc_mp.compare_d(r, 0) == LTC_MP_EQ) {
-			// try again
+			/* try again */
 			ecc_free(&R_key);
 			continue;
 		}
@@ -223,7 +223,7 @@ void buf_put_ecdsa_sign(buffer *buf, ecc_key *key, buffer *data_buf) {
 
 	snprintf((char*)key_ident, sizeof(key_ident), "ecdsa-sha2-%s", curve->name);
 	buf_putstring(buf, key_ident, strlen(key_ident));
-	// enough for nistp521
+	/* enough for nistp521 */
 	sigbuf = buf_new(200);
 	buf_putmpint(sigbuf, (mp_int*)r);
 	buf_putmpint(sigbuf, (mp_int*)s);
@@ -245,8 +245,8 @@ out:
 	}
 }
 
-// returns values in s and r
-// returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE
+/* returns values in s and r
+   returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
 static int buf_get_ecdsa_verify_params(buffer *buf,
 			void *r, void* s) {
 	int ret = DROPBEAR_FAILURE;
@@ -417,4 +417,4 @@ out:
 
 
 
-#endif // DROPBEAR_ECDSA
+#endif /* DROPBEAR_ECDSA */
diff --git a/ecdsa.h b/ecdsa.h
index 5186fb752e4b841ced93c8f094e5520839626f6d..f578171f7952bc6dc4f27c741dc91a408a34fd76 100644
--- a/ecdsa.h
+++ b/ecdsa.h
@@ -32,4 +32,4 @@ int signkey_is_ecdsa(enum signkey_type type);
 
 #endif
 
-#endif // _ECDSA_H_
+#endif /* _ECDSA_H_ */
diff --git a/gensignkey.c b/gensignkey.c
index eb1fe2bf667beb3050fb90c3c7af2c2832cad53c..2869d2c4a6efc5765d6ed5bbd6fc54cee0ddf6e1 100644
--- a/gensignkey.c
+++ b/gensignkey.c
@@ -10,7 +10,7 @@
 #define RSA_DEFAULT_SIZE 2048
 #define DSS_DEFAULT_SIZE 1024
 
-// Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE
+/* Returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
 static int buf_writefile(buffer * buf, const char * filename) {
 	int ret = DROPBEAR_FAILURE;
 	int fd = -1;
diff --git a/keyimport.c b/keyimport.c
index 7098ae7f5c73fe600672f05dd78d17bcd6a0413d..d75e636a4bd4074be677fe9aacc7ec8cdd3aec36 100644
--- a/keyimport.c
+++ b/keyimport.c
@@ -672,14 +672,14 @@ static sign_key *openssh_read(const char *filename, char * UNUSED(passphrase))
 		ecc_key *ecc = NULL;
 		const struct dropbear_ecc_curve *curve = NULL;
 
-		// See SEC1 v2, Appendix C.4
-		// OpenSSL (so OpenSSH) seems to include the optional parts.
+		/* See SEC1 v2, Appendix C.4 */
+		/* OpenSSL (so OpenSSH) seems to include the optional parts. */
 
-		// privateKey OCTET STRING,
+		/* privateKey OCTET STRING, */
 		ret = ber_read_id_len(p, key->keyblob+key->keyblob_len-p,
 							  &id, &len, &flags);
 		p += ret;
-		// id==4 for octet string
+		/* id==4 for octet string */
 		if (ret < 0 || id != 4 ||
 			key->keyblob+key->keyblob_len-p < len) {
 			errmsg = "ASN.1 decoding failure";
@@ -689,11 +689,11 @@ static sign_key *openssh_read(const char *filename, char * UNUSED(passphrase))
 		private_key_len = len;
 		p += len;
 
-		// parameters [0] ECDomainParameters {{ SECGCurveNames }} OPTIONAL,
+		/* parameters [0] ECDomainParameters {{ SECGCurveNames }} OPTIONAL, */
 		ret = ber_read_id_len(p, key->keyblob+key->keyblob_len-p,
 							  &id, &len, &flags);
 		p += ret;
-		// id==0
+		/* id==0 */
 		if (ret < 0 || id != 0) {
 			errmsg = "ASN.1 decoding failure";
 			goto error;
@@ -702,7 +702,7 @@ static sign_key *openssh_read(const char *filename, char * UNUSED(passphrase))
 		ret = ber_read_id_len(p, key->keyblob+key->keyblob_len-p,
 							  &id, &len, &flags);
 		p += ret;
-		// id==6 for object
+		/* id==6 for object */
 		if (ret < 0 || id != 6 ||
 			key->keyblob+key->keyblob_len-p < len) {
 			errmsg = "ASN.1 decoding failure";
@@ -737,11 +737,11 @@ static sign_key *openssh_read(const char *filename, char * UNUSED(passphrase))
 		}
 		p += len;
 
-		// publicKey [1] BIT STRING OPTIONAL
+		/* publicKey [1] BIT STRING OPTIONAL */
 		ret = ber_read_id_len(p, key->keyblob+key->keyblob_len-p,
 							  &id, &len, &flags);
 		p += ret;
-		// id==1
+		/* id==1 */
 		if (ret < 0 || id != 1) {
 			errmsg = "ASN.1 decoding failure";
 			goto error;
@@ -750,7 +750,7 @@ static sign_key *openssh_read(const char *filename, char * UNUSED(passphrase))
 		ret = ber_read_id_len(p, key->keyblob+key->keyblob_len-p,
 							  &id, &len, &flags);
 		p += ret;
-		// id==3 for bit string
+		/* id==3 for bit string */
 		if (ret < 0 || id != 3 ||
 			key->keyblob+key->keyblob_len-p < len) {
 			errmsg = "ASN.1 decoding failure";
@@ -775,7 +775,7 @@ static sign_key *openssh_read(const char *filename, char * UNUSED(passphrase))
 
 		*signkey_key_ptr(retkey, retkey->type) = ecc;
 	}
-#endif // DROPBEAR_ECDSA
+#endif /* DROPBEAR_ECDSA */
 
 	/*
 	 * Now put together the actual key. Simplest way to do this is
@@ -1012,7 +1012,7 @@ static int openssh_write(const char *filename, sign_key *key,
 			memcpy(outblob+pos, numbers[i].start, numbers[i].bytes);
 			pos += numbers[i].bytes;
 		}
-	} // end RSA and DSS handling
+	} /* end RSA and DSS handling */
 
 #ifdef DROPBEAR_ECDSA
 	if (key->type == DROPBEAR_SIGNKEY_ECDSA_NISTP256
@@ -1067,7 +1067,7 @@ static int openssh_write(const char *filename, sign_key *key,
 
 		buf_incrwritepos(seq_buf,
 			ber_write_id_len(buf_getwriteptr(seq_buf, 10), 0, 2+curve_oid_len, 0xa0));
-		// object == 6
+		/* object == 6 */
 		buf_incrwritepos(seq_buf,
 			ber_write_id_len(buf_getwriteptr(seq_buf, 10), 6, curve_oid_len, 0));
 		buf_putbytes(seq_buf, curve_oid, curve_oid_len);
diff --git a/ltc_prng.c b/ltc_prng.c
index 11e95d61412da79bb92f30bdb101b92875851838..60cd590fd98db61ea3a214088a0815228a7bc253 100644
--- a/ltc_prng.c
+++ b/ltc_prng.c
@@ -134,4 +134,4 @@ const struct ltc_prng_descriptor dropbear_prng_desc =
 };
 
 
-#endif // DROPBEAR_LTC_PRNG
+#endif /* DROPBEAR_LTC_PRNG */
diff --git a/ltc_prng.h b/ltc_prng.h
index d7ec90424fbfd8dc0453c1ef6e2e759cda09d905..f5391e0409eaaba351183597a9ed56683f5431c8 100644
--- a/ltc_prng.h
+++ b/ltc_prng.h
@@ -8,6 +8,6 @@
 
 extern const struct ltc_prng_descriptor dropbear_prng_desc;
 
-#endif // DROPBEAR_LTC_PRNG
+#endif /* DROPBEAR_LTC_PRNG */
 
-#endif // _LTC_PRNG_H_DROPBEAR
\ No newline at end of file
+#endif /* _LTC_PRNG_H_DROPBEAR */
diff --git a/options.h b/options.h
index 726e64caa1d9d25a09e4b658e2b3b4b41b3a6ce6..c122c433eb6788a1c1f7d546d5771cec1986ac0b 100644
--- a/options.h
+++ b/options.h
@@ -171,7 +171,7 @@ much traffic. */
 #endif
 
 /* Whether to do reverse DNS lookups. */
-//#define DO_HOST_LOOKUP
+/*#define DO_HOST_LOOKUP */
 
 /* Whether to print the message of the day (MOTD). This doesn't add much code
  * size */
diff --git a/packet.c b/packet.c
index 4ebd0d716860b74cc282c463e5709b8074298eab..6f872d2d68d968680e4bdaf32bdba30db7009d8e 100644
--- a/packet.c
+++ b/packet.c
@@ -98,7 +98,7 @@ void write_packet() {
 		writebuf = (buffer*)examine(&ses.writequeue);
 		len = writebuf->len - 1 - writebuf->pos;
 		if (len > written) {
-			// partial buffer write
+			/* partial buffer write */
 			buf_incrpos(writebuf, written);
 			written = 0;
 		} else {
diff --git a/random.c b/random.c
index 674365433d537560754414ae0b118e3e41ba54e9..cc448ec8ee452403da04bff22265804be5e7ca3d 100644
--- a/random.c
+++ b/random.c
@@ -225,8 +225,8 @@ void seedrandom() {
 	pid = getpid();
 	sha1_process(&hs, (void*)&pid, sizeof(pid));
 
-	// gettimeofday() doesn't completely fill out struct timeval on 
-	// OS X (10.8.3), avoid valgrind warnings by clearing it first
+	/* gettimeofday() doesn't completely fill out struct timeval on 
+	   OS X (10.8.3), avoid valgrind warnings by clearing it first */
 	memset(&tv, 0x0, sizeof(tv));
 	gettimeofday(&tv, NULL);
 	sha1_process(&hs, (void*)&tv, sizeof(tv));
diff --git a/scp.c b/scp.c
index 114d095a7d2ed23526412c48f320cd7332cecfd1..65cbb776ca7a104de13026a743d0e7e39c1a7751 100644
--- a/scp.c
+++ b/scp.c
@@ -494,8 +494,8 @@ toremote(char *targ, int argc, char **argv)
 			if (verbose_mode)
 				addargs(&alist, "-v");
 #if 0
-			// Disabled since dbclient won't understand them
-			// and scp works fine without them.
+			/* Disabled since dbclient won't understand them
+			   and scp works fine without them. */
 			addargs(&alist, "-x");
 			addargs(&alist, "-oClearAllForwardings yes");
 			addargs(&alist, "-n");
diff --git a/session.h b/session.h
index 88eb309ddb96db5f606db3abfc39d006a50f503d..91e306a7f7158696af7795a4c98273bf638e5540 100644
--- a/session.h
+++ b/session.h
@@ -241,7 +241,7 @@ typedef enum {
 
 struct clientsession {
 
-	// XXX - move these to kexstate?
+	/* XXX - move these to kexstate? */
 	struct kex_dh_param *dh_param;
 	struct kex_ecdh_param *ecdh_param;
 	struct kex_curve25519_param *curve25519_param;
diff --git a/signkey.c b/signkey.c
index 24144778f25879114fa73a3eb5dfe75222ea79a3..8347371de1c9e94cc1c607dca74b4d6429e7dd0b 100644
--- a/signkey.c
+++ b/signkey.c
@@ -40,7 +40,7 @@ static const char *signkey_names[DROPBEAR_SIGNKEY_NUM_NAMED] = {
 	"ecdsa-sha2-nistp256",
 	"ecdsa-sha2-nistp384",
 	"ecdsa-sha2-nistp521"
-#endif // DROPBEAR_ECDSA
+#endif /* DROPBEAR_ECDSA */
 };
 
 /* malloc a new sign_key and set the dss and rsa keys to NULL */
diff --git a/signkey.h b/signkey.h
index d98a85610e4310796edd35af078aae3a4d1258d4..60c04d9d0e3ea52f48ebc118e82e8bda9633f8b2 100644
--- a/signkey.h
+++ b/signkey.h
@@ -40,9 +40,9 @@ enum signkey_type {
 	DROPBEAR_SIGNKEY_ECDSA_NISTP256,
 	DROPBEAR_SIGNKEY_ECDSA_NISTP384,
 	DROPBEAR_SIGNKEY_ECDSA_NISTP521,
-	DROPBEAR_SIGNKEY_ECDSA_KEYGEN, // just "ecdsa" for keygen
-#endif // DROPBEAR_ECDSA
+#endif /* DROPBEAR_ECDSA */
 	DROPBEAR_SIGNKEY_NUM_NAMED,
+	DROPBEAR_SIGNKEY_ECDSA_KEYGEN = 70, /* just "ecdsa" for keygen */
 	DROPBEAR_SIGNKEY_ANY = 80,
 	DROPBEAR_SIGNKEY_NONE = 90,
 };
diff --git a/svr-runopts.c b/svr-runopts.c
index cbfd1904b730cc711e777f2425e1509bb21894a7..f78190f775cfde8d99c70f4a1e6c0be7eddcd4a4 100644
--- a/svr-runopts.c
+++ b/svr-runopts.c
@@ -436,7 +436,7 @@ static void loadhostkey(const char *keyfile, int fatal_duplicate) {
 		loadhostkey_helper("ECDSA521", (void**)&read_key->ecckey521, (void**)&svr_opts.hostkey->ecckey521, fatal_duplicate);
 	}
 #endif
-#endif // DROPBEAR_ECDSA
+#endif /* DROPBEAR_ECDSA */
 	sign_key_free(read_key);
 	TRACE(("leave loadhostkey"))
 }
diff --git a/svr-tcpfwd.c b/svr-tcpfwd.c
index 0d26cdc603e48f827249422b96eec1dbeccd266f..179d5ffc8c8b038ab2322fa5549c34e2205fe547 100644
--- a/svr-tcpfwd.c
+++ b/svr-tcpfwd.c
@@ -211,7 +211,7 @@ static int svr_remotetcpreq() {
 
 	tcpinfo->request_listenaddr = request_addr;
 	if (!opts.listen_fwd_all || (strcmp(request_addr, "localhost") == 0) ) {
-        // NULL means "localhost only"
+        /* NULL means "localhost only" */
 		tcpinfo->listenaddr = NULL;
 	}
 	else