Adapted to new version of libp7
This commit is contained in:
parent
f57245b645
commit
e4553a75de
2
Makefile
2
Makefile
|
@ -149,7 +149,7 @@ $(eval $(call make-binaryobj-rule,$(bin),$(obj)))))
|
|||
define make-binary-rules
|
||||
$1$(if $(FOR_WINDOWS),.exe): $(SRC_$1:%=$(OBJDIR)/$1/%.o) | $(OBJDIR)/$1
|
||||
$(call bcmd,ld,$$@,$(LD) -o $$@ $$^ $(LDFLAGS_$1))
|
||||
all-$1: $1$(if $(FOR_WINDOWS),.exe)
|
||||
all-$1: $(CHECKCFG) $1$(if $(FOR_WINDOWS),.exe)
|
||||
|
||||
clean-$1:
|
||||
$(call rmsg,Removing $1 and its objects directory.)
|
||||
|
|
|
@ -186,7 +186,7 @@ int main(int ac, char **av)
|
|||
return (0);
|
||||
|
||||
/* Initialize libp7 and communication */
|
||||
p7_handle_t *handle; int err;
|
||||
p7_handle_t *handle = NULL; int err;
|
||||
if (args.com) err = p7_cominit(&handle, 1, !args.noinit, args.com);
|
||||
else err = p7_init(&handle, 1, !args.noinit);
|
||||
if (err) {
|
||||
|
|
|
@ -57,7 +57,7 @@ int main(int ac, char **av)
|
|||
return (0);
|
||||
|
||||
/* Initialize libp7 and communication */
|
||||
p7_handle_t *handle; int err;
|
||||
p7_handle_t *handle = NULL; int err;
|
||||
if (args.com) err = p7_cominit(&handle, 1, 1, args.com);
|
||||
else err = p7_init(&handle, 1, 1);
|
||||
if (err) goto init_error;
|
||||
|
|
|
@ -127,7 +127,7 @@ int main(int ac, char **av)
|
|||
return (0);
|
||||
|
||||
/* Initialize libp7 */
|
||||
p7_handle_t *handle; int err;
|
||||
p7_handle_t *handle = NULL; int err;
|
||||
if (com) err = p7_cominit(&handle, 0, 0, com);
|
||||
else err = p7_init(&handle, 0, 0);
|
||||
if (err) {
|
||||
|
|
Reference in New Issue