Permalink
Browse files

gen-dtrace-probe-header: fixed the coding style in the output C heade…

…r file.
  • Loading branch information...
1 parent cc8d21a commit 9d73509872519149f654f8351ff7794ce47f12e5 @agentzh agentzh committed Jan 29, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 gen-dtrace-probe-header
@@ -39,8 +39,8 @@ my $buf = <<_EOC_;
* https://github.com/agentzh/nginx-devel-utils
*/
-#ifndef NGX_HTTP_${modname_uc}_PROBE_H
-#define NGX_HTTP_${modname_uc}_PROBE_H
+#ifndef _NGX_HTTP_${modname_uc}_PROBE_H_INCLUDED_
+#define _NGX_HTTP_${modname_uc}_PROBE_H_INCLUDED_
#include <ngx_config.h>
@@ -118,7 +118,7 @@ for my $def (@defs) {
$buf .= "#define $nginx_macro($arglist)\n";
}
-$buf .= "\n#endif\n\n#endif /* NGX_HTTP_${modname_uc}_PROBE_H */\n";
+$buf .= "\n#endif\n\n#endif /* _NGX_HTTP_${modname_uc}_PROBE_H_INCLUDED_ */\n";
open my $out, ">$outfile"
or die "Cannot open $outfile for writing: $!\n";

0 comments on commit 9d73509

Please sign in to comment.