summaryrefslogtreecommitdiff
path: root/fuzzy.c
diff options
context:
space:
mode:
Diffstat (limited to 'fuzzy.c')
-rw-r--r--fuzzy.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/fuzzy.c b/fuzzy.c
index e165107..b530e92 100644
--- a/fuzzy.c
+++ b/fuzzy.c
@@ -370,30 +370,3 @@ int fuzzy_hash_filename(const char *filename, /*@out@*/ char *result) {
return status;
}
-#ifdef S_SPLINT_S
-extern /*@only@*/ /*@null@*/ char *realpath(const char *,
- /*@null@*/ const char *);
-#endif
-
-int main(int argc, char **argv) {
- char digest[FUZZY_MAX_RESULT], *p;
- int i;
- puts("ssdeep,1.1--blocksize:hash:hash,filename");
- for(i = 1; i < argc; ++i) {
- p = realpath(argv[i], NULL);
- if(p == NULL)
- return 1;
- if(fuzzy_hash_filename(argv[i], digest) < 0) {
- free(p);
- return 1;
- }
- printf("%s,\"%s\"\n", digest, p);
- free(p);
- }
- if(argc == 1) {
- if(fuzzy_hash_stream(stdin, digest) < 0)
- return 1;
- printf("%s,\"stdin\"\n", digest);
- }
- return 0;
-}