diff options
author | midipix <writeonce@midipix.org> | 2015-09-21 19:01:02 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:20 -0500 |
commit | e9c695496cc1e6bf154bbd6c02472a0b6f4f8938 (patch) | |
tree | 7ae6c3fc6d571422d52fd63af66c82cf5d0f8a5c | |
parent | c34c66a73034186b679c55681b1997c88aefa758 (diff) | |
download | perk-e9c695496cc1e6bf154bbd6c02472a0b6f4f8938.tar.bz2 perk-e9c695496cc1e6bf154bbd6c02472a0b6f4f8938.tar.xz |
main() and perk_main(): do not use alias, normalize function signature.
-rw-r--r-- | src/main/perk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/perk.c b/src/main/perk.c index 94be294..0382186 100644 --- a/src/main/perk.c +++ b/src/main/perk.c @@ -2,7 +2,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <malloc.h> #include <unistd.h> #include <fcntl.h> #include <limits.h> @@ -101,7 +100,7 @@ static int perk_run(struct perk_ctx * ctx) return perk_exit(ctx); } -static int perk_main(int argc, char * argv[], char * envp[]) +static int perk_main(int argc, char ** argv, char ** envp) { struct perk_ctx ctx = {argc,argv,envp}; @@ -111,6 +110,7 @@ static int perk_main(int argc, char * argv[], char * envp[]) return perk_run(&ctx); } -#ifdef PERK_APP -__typeof(perk_main) main __attribute__((alias("perk_main"))); -#endif +int main(int argc, char ** argv, char ** envp) +{ + return perk_main(argc,argv,envp); +} |