r16947: Fix warning with profile separator when profiles not
authorJeremy Allison <jra@samba.org>
Tue, 11 Jul 2006 18:03:25 +0000 (18:03 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:19:14 +0000 (11:19 -0500)
being used.
Jeremy.
(This used to be commit 441c289fd21d00398fb7c4c7c0338b03129a7545)

source3/utils/status_profile.c

index fc5b5e10ffdafa8ac0af705e165d3db06f55e09b..9de89d563f98a47a4041ffbfa0141c73556fa138 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "includes.h"
 
+#ifdef WITH_PROFILE
 static void profile_separator(const char * title)
 {
     char line[79 + 1];
@@ -35,6 +36,7 @@ static void profile_separator(const char * title)
     line[sizeof(line) - 1] = '\0';
     d_printf("%s\n", line);
 }
+#endif
 
 /*******************************************************************
  dump the elements of the profile structure