From 284d0faed6a1ec2adcc4b7aea31ae3d05b3b70d9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 16 Feb 2008 13:18:17 +0000 Subject: random s/short/int/ add_cmd 1189 1190 +1 xconnect_ftpdata 118 117 -1 data_align 86 84 -2 process_files 2101 2096 -5 forkexec 1345 1334 -11 --- include/libbb.h | 4 ++-- include/unarchive.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/libbb.h b/include/libbb.h index b405df5..3175c8e 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -595,14 +595,14 @@ int bb_execvp(const char *file, char *const argv[]); pid_t spawn(char **argv); pid_t xspawn(char **argv); -/* Unlike waitpid, waits ONLY for one process, +int safe_waitpid(int pid, int *wstat, int options); +/* Unlike waitpid, waits ONLY for one process. * It's safe to pass negative 'pids' from failed [v]fork - * wait4pid will return -1 (and will not clobber [v]fork's errno). * IOW: rc = wait4pid(spawn(argv)); * if (rc < 0) bb_perror_msg("%s", argv[0]); * if (rc > 0) bb_error_msg("exit code: %d", rc); */ -int safe_waitpid(int pid, int *wstat, int options); int wait4pid(int pid); int wait_any_nohang(int *wstat); #define wait_crashed(w) ((w) & 127) diff --git a/include/unarchive.h b/include/unarchive.h index 4ed2ccd..8b76217 100644 --- a/include/unarchive.h +++ b/include/unarchive.h @@ -97,7 +97,7 @@ extern void seek_by_read(const archive_handle_t *archive_handle, const unsigned extern ssize_t archive_xread_all_eof(archive_handle_t *archive_handle, unsigned char *buf, size_t count); -extern void data_align(archive_handle_t *archive_handle, const unsigned short boundary); +extern void data_align(archive_handle_t *archive_handle, unsigned boundary); extern const llist_t *find_list_entry(const llist_t *list, const char *filename); extern const llist_t *find_list_entry2(const llist_t *list, const char *filename); -- cgit v1.1