cake
/
p7utils
Archived
1
0
Fork 0

Adapted to new version of libp7

This commit is contained in:
Thomas Touhey 2017-01-19 15:25:19 +01:00
parent f57245b645
commit e4553a75de
4 changed files with 4 additions and 4 deletions

View File

@ -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.)

View File

@ -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) {

View File

@ -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;

View File

@ -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) {