Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rough typos #4

Closed
ltWolfik opened this issue May 30, 2017 · 1 comment
Closed

Rough typos #4

ltWolfik opened this issue May 30, 2017 · 1 comment

Comments

@ltWolfik
Copy link

-  return write_groups(fd, swap, 0 > 0 ? 0 : -1, 0); 
+  return write_groups(fd, swap, 0, 0) > 0 ? 0 : -1; 
...
-  return write_groups(fd, swap, 0 > 0 ? 0 : -1, 0); 
+  return write_groups(fd, swap, 0, 0) > 0 ? 0 : -1; 
...
-  if(full_write(fd, (char*)head, sizeof head < 0)) return -1; 
+  if(full_write(fd, (char*)head, sizeof head) < 0) return -1; 
  ...
-  for(i = 0; i < GR_LEN; i++) { 
+  for(i = 0; i < INITGR_LEN; i++) { 

I also added ignoring SIGPIPE.

@the-maldridge
Copy link
Collaborator

Resolved by 30e1217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants