r1035: Support shared modules again
authorJelmer Vernooij <jelmer@samba.org>
Sat, 5 Jun 2004 19:30:13 +0000 (19:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:31 +0000 (12:56 -0500)
(This used to be commit 7949dc25ab05f7d5ad6217a6304e1f50b8b5dc41)

source4/build/smb_build/makefile.pl
source4/lib/registry/tools/regdiff.c

index 0b85fac92621e8732c9fb518d3ffb20822a6422d..7f05ed9bcdb6c27947755677ff657c1287857306 100644 (file)
@@ -294,7 +294,7 @@ sub _prepare_subsystem_obj_list($)
 # $module_ctx->{OBJ_LIST} -    the list of objectfiles which sould be linked to this module
 #
 # $output -            the resulting output buffer
-sub _prepare_module_objlist($)
+sub _prepare_module_obj_list($)
 {
        my $ctx = shift;
 
index 7520e653bb6515c45631a0d3ed9a5368010b4dae..b599a54c2e39f9ded2f9e59b190e370c432279a7 100644 (file)
@@ -91,7 +91,7 @@ static void writediff(REG_KEY *oldkey, REG_KEY *newkey, FILE *out)
        }
 }
 
- int main(int argc, char **argv)
+int main(int argc, char **argv)
 {
        int opt;
        poptContext pc;
@@ -115,7 +115,7 @@ static void writediff(REG_KEY *oldkey, REG_KEY *newkey, FILE *out)
        };
 
        pc = poptGetContext(argv[0], argc, (const char **) argv, long_options,0);
-       
+
        while((opt = poptGetNextOpt(pc)) != -1) {
                switch(opt)     {
                case 'c':
@@ -123,9 +123,9 @@ static void writediff(REG_KEY *oldkey, REG_KEY *newkey, FILE *out)
                        else if(!credentials2) credentials2 = poptGetOptArg(pc);
                        break;
                case 'b':
-                               if(!backend1 && !from_null) backend1 = poptGetOptArg(pc);
-                               else if(!backend2) backend2 = poptGetOptArg(pc);
-                               break;
+                       if(!backend1 && !from_null) backend1 = poptGetOptArg(pc);
+                       else if(!backend2) backend2 = poptGetOptArg(pc);
+                       break;
                }
        }
        setup_logging(argv[0], True);
@@ -154,13 +154,13 @@ static void writediff(REG_KEY *oldkey, REG_KEY *newkey, FILE *out)
        }
 
        if(!backend2) backend2 = "dir";
-       
+
        error = reg_open(backend2, location2, credentials2, &h2);
        if(!W_ERROR_IS_OK(error)) {
                fprintf(stderr, "Unable to open '%s' with backend '%s'\n", location2, backend2);
                return 1;
        }
-       
+
        poptFreeContext(pc);
 
        if(outputfile) {
@@ -175,24 +175,24 @@ static void writediff(REG_KEY *oldkey, REG_KEY *newkey, FILE *out)
        fprintf(fd, "; Generated using regdiff\n");
 
        error2 = error = WERR_OK; 
-       
+
        for(i = 0; ; i++) {
                if(backend1) error = reg_get_hive(h1, i, &root1);
                else root1 = NULL;
 
                if(!W_ERROR_IS_OK(error)) break;
-       
+
                if(backend2) error2 = reg_get_hive(h2, i, &root2);
                else root2 = NULL;
-               
+
                if(!W_ERROR_IS_OK(error2)) break;
-       
+
                writediff(root1, root2, fd); 
 
                if(!root1 && !root2) break;
        }
 
        fclose(fd);
-       
+
        return 0;
 }