external/koush/Superuser
Revisão | b076107daf00dded34de2ea3a3e8081f03f05533 (tree) |
---|---|
Hora | 2019-10-08 19:22:42 |
Autor | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
Fix building issues with pie-x86
@@ -167,7 +167,6 @@ int send_request(struct su_context *ctx) { | ||
167 | 167 | char user[64]; |
168 | 168 | int needs_owner_login_prompt = get_owner_login_user_args(ctx, user, sizeof(user)); |
169 | 169 | |
170 | - int ret; | |
171 | 170 | if (needs_owner_login_prompt) { |
172 | 171 | char uid[256]; |
173 | 172 | sprintf(uid, "%d", ctx->from.uid); |
@@ -504,7 +504,7 @@ err: | ||
504 | 504 | // List of signals which cause process termination |
505 | 505 | static int quit_signals[] = { SIGALRM, SIGHUP, SIGPIPE, SIGQUIT, SIGTERM, SIGINT, 0 }; |
506 | 506 | |
507 | -static void sighandler(int sig) { | |
507 | +static void sighandler(int __attribute__((unused))sig) { | |
508 | 508 | restore_stdin(); |
509 | 509 | |
510 | 510 | // Assume we'll only be called before death |
@@ -89,7 +89,6 @@ policy_t database_check(struct su_context *ctx) { | ||
89 | 89 | return INTERACTIVE; |
90 | 90 | } |
91 | 91 | |
92 | - int result; | |
93 | 92 | char *err = NULL; |
94 | 93 | struct callback_data_t data; |
95 | 94 | data.ctx = ctx; |
@@ -884,7 +884,7 @@ int su_main(int argc, char *argv[], int need_client) { | ||
884 | 884 | |
885 | 885 | ctx.umask = umask(027); |
886 | 886 | |
887 | - int ret = mkdir(REQUESTOR_CACHE_PATH, 0770); | |
887 | + mkdir(REQUESTOR_CACHE_PATH, 0770); | |
888 | 888 | if (chown(REQUESTOR_CACHE_PATH, st.st_uid, st.st_gid)) { |
889 | 889 | PLOGE("chown (%s, %ld, %ld)", REQUESTOR_CACHE_PATH, st.st_uid, st.st_gid); |
890 | 890 | deny(&ctx); |