diff --git a/src/sbbs3/ctrl/NodeFormUnit.cpp b/src/sbbs3/ctrl/NodeFormUnit.cpp
index f622a58d853660c8e7465bf08e85ceb476f227c7..5a8fee1b0cca4bda27943e484e94bd4f5fc7f2ed 100644
--- a/src/sbbs3/ctrl/NodeFormUnit.cpp
+++ b/src/sbbs3/ctrl/NodeFormUnit.cpp
@@ -163,9 +163,8 @@ void __fastcall TNodeForm::TimerTick(TObject *Sender)
 	    lseek(nodedab, n*sizeof(node_t), SEEK_SET);
         if(eof(nodedab))
         	break;
-    	i=locking(nodedab, LK_LOCK, sizeof(node_t));
-        if(i!=0) {
-        	ListBox->Items->Add("Error "+AnsiString(i)+" locking record for"
+        if(locking(nodedab, LK_LOCK, sizeof(node_t))!=0) {
+        	ListBox->Items->Add("Error "+AnsiString(errno)+" locking record for"
 	            " node "+AnsiString(n+1));
             break; /* was continue */
         }