Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lib/vhd_stubs.c: In function 'stub_vhd_create':
- lib/vhd_stubs.c:75:3: error: too many arguments to function 'vhd_create'
- int ret = vhd_create(String_val(name),Int64_val(size),Int_val(type),Int64_val(mbytes),Int_val(flags));
- ^
- In file included from lib/vhd_stubs.c:11:0:
- /usr/include/vhd/libvhd.h:251:5: note: declared here
- int vhd_create(const char *name, uint64_t bytes, int type, vhd_flag_creat_t);
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_snapshot':
- lib/vhd_stubs.c:85:3: error: too many arguments to function 'vhd_snapshot'
- int ret = vhd_snapshot(String_val(snapshot),Int64_val(size),String_val(parent),Int64_val(mbytes),Int_val(flags));
- ^
- In file included from lib/vhd_stubs.c:11:0:
- /usr/include/vhd/libvhd.h:254:5: note: declared here
- int vhd_snapshot(const char *snapshot, uint64_t bytes, const char *parent,
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_get_uid':
- lib/vhd_stubs.c:127:3: error: incompatible type for argument 1 of 'uuid_unparse_lower'
- uuid_unparse_lower(context->footer.uuid,uuid);
- ^
- In file included from /usr/include/vhd/vhd-uuid.h:32:0,
- from /usr/include/vhd/libvhd.h:39,
- from lib/vhd_stubs.c:11:
- /usr/include/uuid/uuid.h:92:6: note: expected 'const unsigned char *' but argument is of type 'vhd_uuid_t'
- void uuid_unparse_lower(const uuid_t uu, char *out);
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_get_parent_uid':
- lib/vhd_stubs.c:146:3: error: incompatible type for argument 1 of 'uuid_unparse_lower'
- uuid_unparse_lower(context->header.prt_uuid,uuid);
- ^
- In file included from /usr/include/vhd/vhd-uuid.h:32:0,
- from /usr/include/vhd/libvhd.h:39,
- from lib/vhd_stubs.c:11:
- /usr/include/uuid/uuid.h:92:6: note: expected 'const unsigned char *' but argument is of type 'vhd_uuid_t'
- void uuid_unparse_lower(const uuid_t uu, char *out);
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_set_virt_size':
- lib/vhd_stubs.c:216:3: warning: implicit declaration of function 'vhd_set_virt_size' [-Wimplicit-function-declaration]
- err=vhd_set_virt_size(context, newsize);
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_coalesce':
- lib/vhd_stubs.c:327:3: error: incompatible type for argument 1 of 'uuid_unparse'
- uuid_unparse(context->footer.uuid,uuid);
- ^
- In file included from /usr/include/vhd/vhd-uuid.h:32:0,
- from /usr/include/vhd/libvhd.h:39,
- from lib/vhd_stubs.c:11:
- /usr/include/uuid/uuid.h:91:6: note: expected 'const unsigned char *' but argument is of type 'vhd_uuid_t'
- void uuid_unparse(const uuid_t uu, char *out);
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_write_sector':
- lib/vhd_stubs.c:421:3: warning: format '%Ld' expects argument of type 'long long int', but argument 4 has type 'uint64_t' [-Wformat=]
- syslog(LOG_INFO, "string='%s', sectorno=%Ld, err=%d", buf, sectorno, err);
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_read_sector':
- lib/vhd_stubs.c:435:7: warning: variable 'err' set but not used [-Wunused-but-set-variable]
- int err;
- ^
- lib/vhd_stubs.c: In function 'stub_vhd_get_first_allocated_block':
- lib/vhd_stubs.c:535:13: warning: variable 'err' set but not used [-Wunused-but-set-variable]
- int i,max,err;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement