Improved error case return codes of many functions.

This commit is contained in:
Florian Pose
2008-11-17 17:18:02 +00:00
parent bdbaf5d078
commit 8d46a283f6
22 changed files with 453 additions and 323 deletions
+2 -2
View File
@@ -111,7 +111,7 @@ int ecrt_master_activate(ec_master_t *master)
&master->process_data_size) == -1) {
fprintf(stderr, "Failed to activate master: %s\n",
strerror(errno));
return -1;
return -1; // FIXME
}
if (master->process_data_size) {
@@ -121,7 +121,7 @@ int ecrt_master_activate(ec_master_t *master)
fprintf(stderr, "Failed to map process data: %s", strerror(errno));
master->process_data = NULL;
master->process_data_size = 0;
return -1;
return -1; // FIXME
}
// Access the mapped region to cause the initial page fault