Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. r = sd_journal_add_match(...);
  2. if (r < 0) {
  3. //some error
  4. }
  5.  
  6. r = sd_journal_add_match(...);
  7. r |= sd_journal_add_match(...);
  8. ...
  9.  
  10. (void) ( ... );
  11.  
  12. r |= sd_journal_add_match(...);
  13.  
  14. (r = sd_journal_add_match(j, "_UID=0", 0)) ||
  15. (r = sd_journal_add_match(j, m2, 0)) ||
  16.  
  17. (void)printf("Hello World");
  18.  
  19. if (printf("Hello World") < 0) {
  20. // do some error handling here
  21. }
  22.  
  23. printf("Hello World");
  24.  
  25. f() || g(); // better (void)(f() || g());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement