--- common/capture.c.orig 2002-04-16 22:19:29.000000000 +0200 +++ common/capture.c 2002-04-16 22:18:13.000000000 +0200 @@ -10,6 +10,7 @@ #include <sys/socket.h> #include <sys/ipc.h> #include <sys/shm.h> +#include <string.h> #include "grab-ng.h" #include "commands.h" /* FIXME: *drv globals */ --- x11/rootv.c.orig 2002-04-16 22:36:19.000000000 +0200 +++ x11/rootv.c 2002-04-16 22:36:13.000000000 +0200 @@ -14,6 +14,7 @@ #include <signal.h> #include <sys/types.h> #include <sys/wait.h> +#include <string.h> #include <X11/Xlib.h> #include <X11/Xutil.h> --- x11/xt.h.orig 2002-04-16 22:43:19.000000000 +0200 +++ x11/xt.h 2002-04-16 22:43:11.000000000 +0200 @@ -87,7 +87,7 @@ /*----------------------------------------------------------------------*/ -Boolean ExitWP(XtPointer client_data); +Boolean ExitWP(XtPointer client_data) __attribute__ ((noreturn)); void ExitCB(Widget widget, XtPointer client_data, XtPointer calldata); void do_exit(void); void CloseMainAction(Widget widget, XEvent *event, @@ -145,7 +145,7 @@ void hello_world(char *name); void handle_cmdline_args(void); void v4lconf_init(void); -int x11_ctrl_alt_backspace(Display *dpy); +int x11_ctrl_alt_backspace(Display *dpy) __attribute__ ((noreturn)); void mouse_event(Widget widget, XtPointer client_data, XEvent *event, Boolean *d); --- libng/color_lut.c.orig 2002-04-16 22:27:45.000000000 +0200 +++ libng/color_lut.c 2002-04-16 22:27:19.000000000 +0200 @@ -238,6 +238,7 @@ int rgb_blue_bits = 0; int rgb_blue_shift = 0; unsigned int i; + int j; unsigned int mask; if (once++) { @@ -297,8 +298,8 @@ ng_lut_blue[i] = SWAP2(ng_lut_blue[i]); } } - for (i = 0; i < nconv2; i++) - lut2_list[i].fmtid_out = fmtid; + for (j = 0; j < nconv2; j++) + lut2_list[j].fmtid_out = fmtid; ng_conv_register(NG_PLUGIN_MAGIC,"built-in",lut2_list,nconv2); break; case 32: @@ -309,8 +310,8 @@ ng_lut_blue[i] = SWAP4(ng_lut_blue[i]); } } - for (i = 0; i < nconv4; i++) - lut4_list[i].fmtid_out = fmtid; + for (j = 0; j < nconv4; j++) + lut4_list[j].fmtid_out = fmtid; ng_conv_register(NG_PLUGIN_MAGIC,"built-in",lut4_list,nconv4); break; }