Dear List, Currently, I'm trying to implement a new feature to rsync.
Delta back: Well, it simply just backups diff blocks, and the program is able to restore to any backup points. Current problem met for adding files! But I met a newbie problem here. I'm going to add six files, which are diff.h/diff.c del.h/del.c and merge.h/merge.c. I have modified Makefile.in. When I add an function, compiler prints some error, see below: And I have found that proto.h is generated automatically. So what I have missed here in configuration (adding those six extra files) I'm really appreciated any help form you. Thanks in advance. > gcc -std=gnu99 -I. -I. -g -O2 -DHAVE_CONFIG_H -Wall -W -c diff.c -o diff.o > In file included from rsync.h:915, > from diff.h:27, > from diff.c:25: > proto.h:62: warning: ‘struct diff_file_list’ declared inside parameter list > proto.h:62: warning: its scope is only this definition or declaration, which > is probably not what you want > diff.c: In function ‘init_diff_idx’: > diff.c:56: warning: unused parameter ‘pdiffidx_file’ > diff.c: At top level: > diff.c:65: error: conflicting types for ‘update_diff_idx’ > proto.h:62: error: previous declaration of ‘update_diff_idx’ was here > diff.c: In function ‘update_diff_idx’: > diff.c:65: warning: unused parameter ‘pdifflist’ > diff.c: In function ‘check_diff_idx’: > diff.c:74: warning: unused parameter ‘pdiffidx_file’ > make: *** [diff.o] Error 1 -- Daniel -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html