main is called main not amain!
authorLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 12:44:22 +0000 (12:44 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Sat, 17 Nov 2007 12:44:22 +0000 (12:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89378 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cygload.c

index fc9c1c2..3b8951b 100644 (file)
@@ -13,7 +13,7 @@ int main(int argc, char *argv[])
        main_f ast_main = NULL;
        void *handle = dlopen("asterisk.dll", 0);
        if (handle)
-               ast_main = (main_f)dlsym(handle, "amain");
+               ast_main = (main_f)dlsym(handle, "main");
        if (ast_main)
                return ast_main(argc, argv);
        fprintf(stderr, "could not load asterisk, %s\n", dlerror());