projects
/
ossec-hids.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- add fortify to lintian
[ossec-hids.git]
/
src
/
shared
/
tests
/
merge_test.c
1
#include <stdio.h>
2
#include <stdlib.h>
3
#include <unistd.h>
4
#include "file_op.h"
5
6
7
int main(int argc, char **argv)
8
{
9
if(!argv[1])
10
{
11
printf("%s [mu] <merged file> <file to merge1> <file to merge2> ..\n", argv[0]);
12
exit(1);
13
}
14
15
if(strcmp(argv[1], "m") == 0)
16
{
17
MergeFiles(argv[2], argv + 3);
18
}
19
else if(strcmp(argv[1], "u") == 0)
20
{
21
UnmergeFiles(argv[2]);
22
}
23
else
24
{
25
printf("ERROR\n");
26
}
27
28
return(0);
29
}
30
31
32
/* EOF */