Install public header files again and include required prototypes.
[ira/wip.git] / source4 / torture / basic / aliases.c
index bf052cf5cc4a88e5c7dc9a32cba08b9780d7320e..89146de99d84d1fd1d2b9b8cc796948db438344a 100644 (file)
@@ -5,7 +5,7 @@
    
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
+   the Free Software Foundation; either version 3 of the License, or
    (at your option) any later version.
    
    This program is distributed in the hope that it will be useful,
    GNU General Public License for more details.
    
    You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 #include "includes.h"
 #include "lib/util/dlinklist.h"
 #include "libcli/raw/libcliraw.h"
+#include "libcli/raw/raw_proto.h"
 #include "torture/torture.h"
 #include "libcli/libcli.h"
 #include "torture/util.h"
@@ -68,8 +68,8 @@ static bool gen_aliases(struct torture_context *tctx,
        for (t2b=alias_blobs; t2b; t2b=t2b->next) {
                for (t2b2=alias_blobs; t2b2; t2b2=t2b2->next) {
                        if (t2b->level >= t2b2->level) continue;
-                       if (data_blob_equal(&t2b->params, &t2b2->params) &&
-                           data_blob_equal(&t2b->data, &t2b2->data)) {
+                       if (data_blob_cmp(&t2b->params, &t2b2->params) == 0 &&
+                           data_blob_cmp(&t2b->data, &t2b2->data) == 0) {
                                torture_comment(tctx, 
                                "\tLevel %u (0x%x) and level %u (0x%x) are possible aliases\n", 
                                       t2b->level, t2b->level, t2b2->level, t2b2->level);
@@ -382,9 +382,9 @@ static bool setpathinfo_aliases(struct torture_context *tctx,
 
 
 /* look for aliased info levels in trans2 calls */
-struct torture_suite *torture_trans2_aliases(void)
+struct torture_suite *torture_trans2_aliases(TALLOC_CTX *mem_ctx)
 {
-       struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "ALIASES");
+       struct torture_suite *suite = torture_suite_create(mem_ctx, "ALIASES");
 
        torture_suite_add_1smb_test(suite, "QFILEINFO aliases", qfsinfo_aliases);
        torture_suite_add_1smb_test(suite, "QFSINFO aliases", qfileinfo_aliases);