Advertisement
Guest User

Untitled

a guest
Jan 15th, 2014
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. lib/vhd_stubs.c: In function 'stub_vhd_create':
  2. lib/vhd_stubs.c:75:3: error: too many arguments to function 'vhd_create'
  3. int ret = vhd_create(String_val(name),Int64_val(size),Int_val(type),Int64_val(mbytes),Int_val(flags));
  4. ^
  5. In file included from lib/vhd_stubs.c:11:0:
  6. /usr/include/vhd/libvhd.h:251:5: note: declared here
  7. int vhd_create(const char *name, uint64_t bytes, int type, vhd_flag_creat_t);
  8. ^
  9. lib/vhd_stubs.c: In function 'stub_vhd_snapshot':
  10. lib/vhd_stubs.c:85:3: error: too many arguments to function 'vhd_snapshot'
  11. int ret = vhd_snapshot(String_val(snapshot),Int64_val(size),String_val(parent),Int64_val(mbytes),Int_val(flags));
  12. ^
  13. In file included from lib/vhd_stubs.c:11:0:
  14. /usr/include/vhd/libvhd.h:254:5: note: declared here
  15. int vhd_snapshot(const char *snapshot, uint64_t bytes, const char *parent,
  16. ^
  17. lib/vhd_stubs.c: In function 'stub_vhd_get_uid':
  18. lib/vhd_stubs.c:127:3: error: incompatible type for argument 1 of 'uuid_unparse_lower'
  19. uuid_unparse_lower(context->footer.uuid,uuid);
  20. ^
  21. In file included from /usr/include/vhd/vhd-uuid.h:32:0,
  22. from /usr/include/vhd/libvhd.h:39,
  23. from lib/vhd_stubs.c:11:
  24. /usr/include/uuid/uuid.h:92:6: note: expected 'const unsigned char *' but argument is of type 'vhd_uuid_t'
  25. void uuid_unparse_lower(const uuid_t uu, char *out);
  26. ^
  27. lib/vhd_stubs.c: In function 'stub_vhd_get_parent_uid':
  28. lib/vhd_stubs.c:146:3: error: incompatible type for argument 1 of 'uuid_unparse_lower'
  29. uuid_unparse_lower(context->header.prt_uuid,uuid);
  30. ^
  31. In file included from /usr/include/vhd/vhd-uuid.h:32:0,
  32. from /usr/include/vhd/libvhd.h:39,
  33. from lib/vhd_stubs.c:11:
  34. /usr/include/uuid/uuid.h:92:6: note: expected 'const unsigned char *' but argument is of type 'vhd_uuid_t'
  35. void uuid_unparse_lower(const uuid_t uu, char *out);
  36. ^
  37. lib/vhd_stubs.c: In function 'stub_vhd_set_virt_size':
  38. lib/vhd_stubs.c:216:3: warning: implicit declaration of function 'vhd_set_virt_size' [-Wimplicit-function-declaration]
  39. err=vhd_set_virt_size(context, newsize);
  40. ^
  41. lib/vhd_stubs.c: In function 'stub_vhd_coalesce':
  42. lib/vhd_stubs.c:327:3: error: incompatible type for argument 1 of 'uuid_unparse'
  43. uuid_unparse(context->footer.uuid,uuid);
  44. ^
  45. In file included from /usr/include/vhd/vhd-uuid.h:32:0,
  46. from /usr/include/vhd/libvhd.h:39,
  47. from lib/vhd_stubs.c:11:
  48. /usr/include/uuid/uuid.h:91:6: note: expected 'const unsigned char *' but argument is of type 'vhd_uuid_t'
  49. void uuid_unparse(const uuid_t uu, char *out);
  50. ^
  51. lib/vhd_stubs.c: In function 'stub_vhd_write_sector':
  52. lib/vhd_stubs.c:421:3: warning: format '%Ld' expects argument of type 'long long int', but argument 4 has type 'uint64_t' [-Wformat=]
  53. syslog(LOG_INFO, "string='%s', sectorno=%Ld, err=%d", buf, sectorno, err);
  54. ^
  55. lib/vhd_stubs.c: In function 'stub_vhd_read_sector':
  56. lib/vhd_stubs.c:435:7: warning: variable 'err' set but not used [-Wunused-but-set-variable]
  57. int err;
  58. ^
  59. lib/vhd_stubs.c: In function 'stub_vhd_get_first_allocated_block':
  60. lib/vhd_stubs.c:535:13: warning: variable 'err' set but not used [-Wunused-but-set-variable]
  61. int i,max,err;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement