summaryrefslogtreecommitdiffstats
path: root/lib/ntdb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2014-11-18 14:16:58 +0100
committerGünther Deschner <gd@samba.org>2014-11-28 14:24:07 +0100
commit8ce7904abd29b1bf01a7a040871bb31b844089d8 (patch)
treee652024300303c7f1be5c1806c82b02479365e96 /lib/ntdb
parent574750777ad47d733a45a72e7da83297e3faa897 (diff)
downloadsamba-8ce7904abd29b1bf01a7a040871bb31b844089d8.tar.gz
samba-8ce7904abd29b1bf01a7a040871bb31b844089d8.tar.xz
samba-8ce7904abd29b1bf01a7a040871bb31b844089d8.zip
ntdb: Fix control reaches end of non-void function.
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'lib/ntdb')
-rw-r--r--lib/ntdb/test/run-01-new_database.c6
-rw-r--r--lib/ntdb/test/run-02-expand.c6
-rw-r--r--lib/ntdb/test/run-05-readonly-open.c6
-rw-r--r--lib/ntdb/test/run-10-simple-store.c6
-rw-r--r--lib/ntdb/test/run-11-simple-fetch.c6
-rw-r--r--lib/ntdb/test/run-12-check.c6
-rw-r--r--lib/ntdb/test/run-35-convert.c6
-rw-r--r--lib/ntdb/test/run-capabilities.c6
8 files changed, 48 insertions, 0 deletions
diff --git a/lib/ntdb/test/run-01-new_database.c b/lib/ntdb/test/run-01-new_database.c
index fe142bdece..ab69477b86 100644
--- a/lib/ntdb/test/run-01-new_database.c
+++ b/lib/ntdb/test/run-01-new_database.c
@@ -31,4 +31,10 @@ int main(int argc, char *argv[])
break;
}
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-02-expand.c b/lib/ntdb/test/run-02-expand.c
index 635bf89206..e808989db4 100644
--- a/lib/ntdb/test/run-02-expand.c
+++ b/lib/ntdb/test/run-02-expand.c
@@ -59,4 +59,10 @@ int main(int argc, char *argv[])
ok1(tap_log_messages == 0);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-05-readonly-open.c b/lib/ntdb/test/run-05-readonly-open.c
index e0de0d96e3..87caf9533f 100644
--- a/lib/ntdb/test/run-05-readonly-open.c
+++ b/lib/ntdb/test/run-05-readonly-open.c
@@ -70,4 +70,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-10-simple-store.c b/lib/ntdb/test/run-10-simple-store.c
index 3e5959a647..0add1f10fb 100644
--- a/lib/ntdb/test/run-10-simple-store.c
+++ b/lib/ntdb/test/run-10-simple-store.c
@@ -56,4 +56,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-11-simple-fetch.c b/lib/ntdb/test/run-11-simple-fetch.c
index 9565ade930..779a5ea14d 100644
--- a/lib/ntdb/test/run-11-simple-fetch.c
+++ b/lib/ntdb/test/run-11-simple-fetch.c
@@ -56,4 +56,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-12-check.c b/lib/ntdb/test/run-12-check.c
index 8abc86dff9..7211761f18 100644
--- a/lib/ntdb/test/run-12-check.c
+++ b/lib/ntdb/test/run-12-check.c
@@ -43,4 +43,10 @@ fail:
failtest_suppress = true;
ntdb_close(ntdb);
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-35-convert.c b/lib/ntdb/test/run-35-convert.c
index b3ee737794..873d4e7781 100644
--- a/lib/ntdb/test/run-35-convert.c
+++ b/lib/ntdb/test/run-35-convert.c
@@ -55,4 +55,10 @@ int main(int argc, char *argv[])
ntdb_close(ntdb);
}
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}
diff --git a/lib/ntdb/test/run-capabilities.c b/lib/ntdb/test/run-capabilities.c
index dac9302fc6..f968393a1a 100644
--- a/lib/ntdb/test/run-capabilities.c
+++ b/lib/ntdb/test/run-capabilities.c
@@ -274,4 +274,10 @@ int main(int argc, char *argv[])
out:
failtest_exit(exit_status());
+
+ /*
+ * We will never reach this but the compiler complains if we do not
+ * return in this function.
+ */
+ return EFAULT;
}