Advertisement
Guest User

Untitled

a guest
Jan 9th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. marxin@marxinbox:/tmp> cat dns-stuff.i
  2. struct dns_options {
  3. struct {
  4. void *a;
  5. int b;
  6. };
  7. int *socks_host;
  8. char *socks_user;
  9. char *socks_password;
  10. };
  11. static char tor_socks_user[1], tor_socks_password[1];
  12. struct {
  13. int socks_host;
  14. } libdns;
  15. int d;
  16. int *c();
  17. int ax() {
  18. int *az;
  19. int ba;
  20. az = c((&__extension__({
  21. (struct dns_options){{0, 0},
  22. 0,
  23. 0,
  24. .socks_host = &libdns.socks_host,
  25. .socks_user = tor_socks_user,
  26. .socks_password = tor_socks_password};
  27. })),
  28. &ba);
  29. d = *az;
  30. return 0;
  31. }
  32. marxin@marxinbox:/tmp> gcc dns-stuff.i
  33. dns-stuff.i: In function ‘ax’:
  34. dns-stuff.i:19:11: error: lvalue required as unary ‘&’ operand
  35. 19 | az = c((&__extension__({
  36. | ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement