pikhq / musl-nscd

Musl-nscd is an implementation of the NSCD protocol, suitable for use with musl and with standard NSS modules
Other
46 stars 14 forks source link

Rough typos #4

Closed ltWolfik closed 5 years ago

ltWolfik commented 7 years ago
-  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 commented 5 years ago

Resolved by 30e1217