pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/mgdiff devel/mgdiff: include <stdint.h> for uint...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a76471a21a9
branches:  trunk
changeset: 391044:8a76471a21a9
user:      vins <vins%pkgsrc.org@localhost>
date:      Tue Jan 03 09:01:41 2023 +0000

description:
devel/mgdiff: include <stdint.h> for uintptr_t.

diffstat:

 devel/mgdiff/distinfo               |   4 ++--
 devel/mgdiff/patches/patch-mgdiff.c |  24 ++++++++++++++++--------
 2 files changed, 18 insertions(+), 10 deletions(-)

diffs (92 lines):

diff -r 508e1e617bc7 -r 8a76471a21a9 devel/mgdiff/distinfo
--- a/devel/mgdiff/distinfo     Tue Jan 03 05:56:46 2023 +0000
+++ b/devel/mgdiff/distinfo     Tue Jan 03 09:01:41 2023 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.1 2023/01/02 22:43:52 vins Exp $
+$NetBSD: distinfo,v 1.2 2023/01/03 09:01:41 vins Exp $
 
 BLAKE2s (mgdiff-1.0/mgdiff.tar.gz) = 7c90e00f9646d41e5e822055340fa41440acaa5ec0352606ccec1e14b43188de
 SHA512 (mgdiff-1.0/mgdiff.tar.gz) = bf5ab4b2a9d42ff2edb73a6dda68a4d17d88f61c63f5ec8366cc49d372a56f3c6812d473a95d86bcb61680d1f91ce4ab7ad87a26748b45e2edd27b73044492a5
 Size (mgdiff-1.0/mgdiff.tar.gz) = 41187 bytes
 SHA1 (patch-Imakefile) = 6a29ed061ea0b54396269707acd7f53a9a5c32ce
-SHA1 (patch-mgdiff.c) = fe9ac9874a1b4a50b97eddfc766c4b8aae258897
+SHA1 (patch-mgdiff.c) = eba9d8ba00e15424093eaa8f65d58c7cb55625ce
 SHA1 (patch-rundiff.c) = 4ead16932bbf480d8da283b335a93418108926f2
diff -r 508e1e617bc7 -r 8a76471a21a9 devel/mgdiff/patches/patch-mgdiff.c
--- a/devel/mgdiff/patches/patch-mgdiff.c       Tue Jan 03 05:56:46 2023 +0000
+++ b/devel/mgdiff/patches/patch-mgdiff.c       Tue Jan 03 09:01:41 2023 +0000
@@ -1,10 +1,18 @@
-$NetBSD: patch-mgdiff.c,v 1.1 2023/01/02 22:43:53 vins Exp $
+$NetBSD: patch-mgdiff.c,v 1.2 2023/01/03 09:01:42 vins Exp $
 
 Prevent unsafe use of tmpnam(). 
 
 --- mgdiff.c.orig      1994-09-29 01:56:53.000000000 +0000
 +++ mgdiff.c
-@@ -520,7 +520,7 @@ static void drawit (Widget w, XtPointer 
+@@ -39,6 +39,7 @@ static char copyright[] = "Copyright (c)
+ #include <stdlib.h>
+ #include <assert.h>
+ #include <errno.h>
++#include <stdint.h>
+ #include <sys/stat.h>
+ 
+ #include <X11/Intrinsic.h>
+@@ -520,7 +521,7 @@ static void drawit (Widget w, XtPointer
  /* ARGSUSED */
  static void file_cb (Widget w, XtPointer closure, XtPointer call_data)
  {
@@ -13,7 +21,7 @@
      case 0:                   /* open */
        toggle_open_sensitive (False);
        set_cursor (toplevel);
-@@ -560,7 +560,7 @@ static void file_cb (Widget w, XtPointer
+@@ -560,7 +561,7 @@ static void file_cb (Widget w, XtPointer
  /* ARGSUSED */
  static void view_cb (Widget w, XtPointer closure, XtPointer call_data)
  {
@@ -22,7 +30,7 @@
      case 0:                   /* previous */
        prev_diff (NULL, NULL, NULL);
        break;
-@@ -582,7 +582,7 @@ static void view_cb (Widget w, XtPointer
+@@ -582,7 +583,7 @@ static void view_cb (Widget w, XtPointer
  /* ARGSUSED */
  static void select_cb (Widget w, XtPointer closure, XtPointer call_data)
  {
@@ -31,7 +39,7 @@
      case 0:                   /* left */
        select_all (LEFT);
        break;
-@@ -604,7 +604,7 @@ static void select_cb (Widget w, XtPoint
+@@ -604,7 +605,7 @@ static void select_cb (Widget w, XtPoint
  /* ARGSUSED */
  static void options_cb (Widget w, XtPointer closure, XtPointer call_data)
  {
@@ -40,7 +48,7 @@
      case 0:                   /* toggle overview area */
        overview_flag = !overview_flag;
        if (overview_flag) {
-@@ -660,7 +660,7 @@ static void options_cb (Widget w, XtPoin
+@@ -660,7 +661,7 @@ static void options_cb (Widget w, XtPoin
  /* ARGSUSED */
  static void helpmenu_cb (Widget w, XtPointer closure, XtPointer call_data)
  {
@@ -49,7 +57,7 @@
      case 0:                   /* version */
        show_version (toplevel);
        break;
-@@ -1110,7 +1110,9 @@ int main (int argc, char *argv[])
+@@ -1110,7 +1111,9 @@ int main (int argc, char *argv[])
         */
      case 3:
        if (strcmp (argv[1], "-") == 0) {
@@ -60,7 +68,7 @@
            str_fnamel = strdup (tempfname);
            str_snamel = strdup (user_filename);
            if (!copy_to_file (stdin, tempfname)) {
-@@ -1131,7 +1133,9 @@ int main (int argc, char *argv[])
+@@ -1131,7 +1134,9 @@ int main (int argc, char *argv[])
        }
  
        if (strcmp (argv[2], "-") == 0) {



Home | Main Index | Thread Index | Old Index