--- libaitsync/example/dircmp.c 2012/11/13 13:41:36 1.1.2.1 +++ libaitsync/example/dircmp.c 2012/11/13 13:59:47 1.1.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ - * $Id: dircmp.c,v 1.1.2.1 2012/11/13 13:41:36 misho Exp $ + * $Id: dircmp.c,v 1.1.2.3 2012/11/13 13:59:47 misho Exp $ * ************************************************************************* The ELWIX and AITNET software is distributed under the following @@ -43,21 +43,25 @@ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "global.h" +#include +#include +#include +#include +#include +#include +#include +#include -extern char compiled[], compiledby[], compilehost[]; - - static void Usage() { printf( "-= DirCmp =- Tool for compare directories and show differences\n" - "=== %s === %s@%s ===\n\n" + "====================\n\n" " Syntax: dircmp [options] []\n\n" "\t-l\t\tLong directory output ...\n" "\t-o \tOutput diff to filename\n" - "\n", compiled, compiledby, compilehost); + "\n"); } int @@ -91,7 +95,7 @@ main(int argc, char **argv) Usage(); return 127; } - // check for general differences + /* check for general differences */ if (argc > 1) { if (lstat(argv[1], &sb) == -1) { printf("Error:: %s(%d) #%d - %s\n", __func__, __LINE__, errno, strerror(errno));