mirror of
https://github.com/sysprog21/lkmpg.git
synced 2025-02-21 20:31:12 +08:00
Fix: errno assignment should be comparison.
This commit is contained in:
parent
ecfe9606de
commit
a183cc72f0
@ -39,7 +39,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
/* If there's an error, report it and die */
|
||||
if (bytes == -1) {
|
||||
if (errno = EAGAIN)
|
||||
if (errno == EAGAIN)
|
||||
puts("Normally I'd block, but you told me not to");
|
||||
else
|
||||
puts("Another read error");
|
||||
|
Loading…
x
Reference in New Issue
Block a user