jvinet / knock

A port-knocking daemon
http://www.zeroflux.org/projects/knock
GNU General Public License v2.0
552 stars 114 forks source link

wrong comment style #35

Closed thedolphin closed 8 years ago

thedolphin commented 8 years ago

Compiler generates warning

diff -ur knock-master/src/knockd.c knock-0.7.7/src/knockd.c
--- knock-master/src/knockd.c   2015-12-15 02:47:03.000000000 +0300
+++ knock-0.7.7/src/knockd.c    2015-12-17 15:06:25.434908265 +0300
@@ -19,9 +19,11 @@
  */

 #if __APPLE__
-// In MacOSX 10.5+, the daemon function is deprecated and will give a warning.
-// This nasty hack which is used by Apple themselves in mDNSResponder does
-// the trick.
+/*
+ * In MacOSX 10.5+, the daemon function is deprecated and will give a warning.
+ * This nasty hack which is used by Apple themselves in mDNSResponder does
+ * the trick.
+ */
 #define daemon deprecated_in_osx_10_5_and_up
 #endif
airwoflgh commented 8 years ago

Bad habit. Fixed in 0.7.7-fixes branch.

airwoflgh commented 8 years ago

Pull request back to master raised.