fixwarnings.diff 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. diff -Naur unclutter-1.09.orig/unclutter.c unclutter-1.09/unclutter.c
  2. --- unclutter-1.09.orig/unclutter.c 2007-02-05 18:13:12.000000000 -0500
  3. +++ unclutter-1.09/unclutter.c 2016-07-22 02:27:29.013435877 -0400
  4. @@ -37,14 +37,15 @@
  5. #include <X11/Xutil.h>
  6. #include <X11/Xproto.h>
  7. #include <stdio.h>
  8. +#include <stdlib.h>
  9. #include "vroot.h"
  10. char *progname;
  11. -pexit(str)char *str;{
  12. +void pexit(str)char *str;{
  13. fprintf(stderr,"%s: %s\n",progname,str);
  14. exit(1);
  15. }
  16. -usage(){
  17. +void usage(){
  18. pexit("usage:\n\
  19. -display <display>\n\
  20. -idle <seconds> time between polls to detect idleness.\n\
  21. @@ -87,7 +88,7 @@
  22. * return true if window has a wm_name and the start of it matches
  23. * one of the given names to avoid
  24. */
  25. -nameinlist(display,window)
  26. +int nameinlist(display,window)
  27. Display *display;
  28. Window window;
  29. {
  30. @@ -109,7 +110,7 @@
  31. * return true if window has a wm_name and one of the given names to avoid
  32. * matches anywhere in that string
  33. */
  34. -matchinlist(display,window)
  35. +int matchinlist(display,window)
  36. Display *display;
  37. Window window;
  38. {
  39. @@ -131,7 +132,7 @@
  40. /*
  41. * create a small 1x1 cursor with all pixels masked out on the given screen.
  42. */
  43. -createnullcursor(display,root)
  44. +Cursor createnullcursor(display,root)
  45. Display *display;
  46. Window root;
  47. {
  48. @@ -155,7 +156,7 @@
  49. return cursor;
  50. }
  51. -main(argc,argv)char **argv;{
  52. +int main(argc,argv)int argc;char **argv;{
  53. Display *display;
  54. int screen,oldx = -99,oldy = -99,numscreens;
  55. int doroot = 0, jitter = 0, idletime = 5, usegrabmethod = 0, waitagain = 0,
  56. diff -Naur unclutter-1.09.orig/vroot.h unclutter-1.09/vroot.h
  57. --- unclutter-1.09.orig/vroot.h 2007-02-05 17:52:40.000000000 -0500
  58. +++ unclutter-1.09/vroot.h 2016-07-22 02:30:08.431426449 -0400
  59. @@ -40,6 +40,7 @@
  60. static Window
  61. VirtualRootWindow(dpy, screen)
  62. Display *dpy;
  63. +int screen;
  64. {
  65. static Display *save_dpy = (Display *)0;
  66. static int save_screen = -1;