patch-program_c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. $OpenBSD: patch-program_c,v 1.2 2005/11/19 15:37:10 naddy Exp $
  2. --- program.c.orig Tue Jan 12 11:59:49 1993
  3. +++ program.c Wed Nov 16 21:18:21 2005
  4. @@ -27,10 +27,13 @@
  5. # include <stdio.h>
  6. # include <string.h>
  7. -# include <malloc.h>
  8. +# include <stdlib.h>
  9. # include "debug.h"
  10. # include "cdrom_globs.h"
  11. +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
  12. +# include "cdrom_freebsd.h"
  13. +#endif
  14. #ifdef sun
  15. # include "cdrom_sun.h"
  16. #endif
  17. @@ -52,6 +55,15 @@ static Widget new_track_button;
  18. static Boolean adding_to_new_track = False;
  19. static struct prognode *current_node = NULL;
  20. +static void cb_move_program_ptr();
  21. +static void cb_clear_program();
  22. +static void cb_cancel_program();
  23. +static void cb_save_program();
  24. +static void cb_trackbuttons();
  25. +static void cb_add_10();
  26. +static void cb_new_track();
  27. +static void cb_program_all();
  28. +
  29. void
  30. program_form_setup (parent_widget)
  31. Widget parent_widget;
  32. @@ -66,15 +78,6 @@ program_form_setup (parent_widget)
  33. Widget cancel_button;
  34. Widget save_button;
  35. Widget all_button;
  36. -
  37. - extern void cb_move_program_ptr();
  38. - extern void cb_clear_program();
  39. - extern void cb_cancel_program();
  40. - extern void cb_save_program();
  41. - extern void cb_trackbuttons();
  42. - extern void cb_add_10();
  43. - extern void cb_new_track();
  44. - extern void cb_program_all();
  45. /*
  46. * create program form as a non-managed widget, because this