[PATCH] More portability fixes
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Sep 23 08:28:50 UTC 2009
On Tue, Sep 22, 2009 at 02:19:54PM -0700, Dan Fandrich wrote:
>Here are my remaining (hopefully) noncontroversial portability and cleanup
>patches. Nothing in here should affect binary size.
>
>>>> Dan
>--
>http://www.MoveAnnouncer.com The web change of address service
> Let webmasters know that your web site has moved
>
>diff --git a/editors/vi.c b/editors/vi.c
>index 31a1edc..ebc865c 100644
>--- a/editors/vi.c
>+++ b/editors/vi.c
>@@ -2187,11 +2187,11 @@ static void catch_sig(int sig)
> }
> #endif /* FEATURE_VI_USE_SIGNALS */
>
>-static int mysleep(int hund) // sleep for 'h' 1/100 seconds
>+static int mysleep(int hund) // sleep for 'hund' 1/100 seconds or stdin ready
> {
> struct pollfd pfd[1];
>
>- pfd[0].fd = 0;
>+ pfd[0].fd = 0; // stdin
STDIN_FILENO
>diff --git a/findutils/find.c b/findutils/find.c
>index 76f6709..8a016ab 100644
>--- a/findutils/find.c
>+++ b/findutils/find.c
>@@ -74,7 +77,7 @@ typedef struct {
> #endif
> } action;
>
>-#define ACTS(name, arg...) typedef struct { action a; arg; } action_##name;
>+#define ACTS(name, ...) typedef struct { action a; __VA_ARGS__ } action_##name;
GNU extension (IIRC) but still prettier than the strict one. Still, ok
in my POV.
More information about the busybox
mailing list