The exit code indicates whether the scans are equal.
0 means that the scans are the same in all the aspects Ndiff knows about.
1 means that the scans differ.
2 indicates a runtime error, such as the failure to open a file.