undo: don't run diff between last tid and tid_max
commit8debe47178fd964f1e543d3b669a6f0292f0f07c
authorSimon Schubert <simon.schubert@epfl.ch>
Fri, 6 Mar 2009 14:41:25 +0000 (6 15:41 +0100)
committerSimon Schubert <simon.schubert@epfl.ch>
Fri, 6 Mar 2009 14:50:26 +0000 (6 15:50 +0100)
tree4d70f96f293fdb292f48ffc7acd2dd3c0ecee65b
parent9380de428c4e71782e923ca3a5ba8d00c263e861
undo: don't run diff between last tid and tid_max

Diff works on pairs of tids and not on only the first tid passed in to
the generator.  As a result, there is nothing to do for the last pair of
tids: the last tid and max_tid refer to the same version.  Avoid running
the generator in this case.
usr.bin/undo/undo.c