pkgsrc-WIP-changes archive

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

mgdiff: fix a couple of compiler warnings.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Wed Dec 21 14:58:58 2022 +0100
Changeset:	aeadb9b36554ae9b6f342f92acff18ca737d8d5e

Modified Files:
	mgdiff/distinfo
	mgdiff/patches/patch-Imakefile
	mgdiff/patches/patch-mgdiff.c

Log Message:
mgdiff: fix a couple of compiler warnings.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=aeadb9b36554ae9b6f342f92acff18ca737d8d5e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mgdiff/distinfo                |  4 ++--
 mgdiff/patches/patch-Imakefile |  7 ++++++-
 mgdiff/patches/patch-mgdiff.c  | 45 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 53 insertions(+), 3 deletions(-)

diffs:
diff --git a/mgdiff/distinfo b/mgdiff/distinfo
index 4c018b6b12..cf47a281d2 100644
--- a/mgdiff/distinfo
+++ b/mgdiff/distinfo
@@ -3,6 +3,6 @@ $NetBSD$
 BLAKE2s (mgdiff.tar.gz) = 7c90e00f9646d41e5e822055340fa41440acaa5ec0352606ccec1e14b43188de
 SHA512 (mgdiff.tar.gz) = bf5ab4b2a9d42ff2edb73a6dda68a4d17d88f61c63f5ec8366cc49d372a56f3c6812d473a95d86bcb61680d1f91ce4ab7ad87a26748b45e2edd27b73044492a5
 Size (mgdiff.tar.gz) = 41187 bytes
-SHA1 (patch-Imakefile) = adb4de928befcb92c498a5dde513358c1fa244ba
-SHA1 (patch-mgdiff.c) = f2789be4b26b28391cd21cdf6eea4bbed62ebe06
+SHA1 (patch-Imakefile) = 6a29ed061ea0b54396269707acd7f53a9a5c32ce
+SHA1 (patch-mgdiff.c) = fe9ac9874a1b4a50b97eddfc766c4b8aae258897
 SHA1 (patch-rundiff.c) = 4ead16932bbf480d8da283b335a93418108926f2
diff --git a/mgdiff/patches/patch-Imakefile b/mgdiff/patches/patch-Imakefile
index e47d09b580..1fad16c012 100644
--- a/mgdiff/patches/patch-Imakefile
+++ b/mgdiff/patches/patch-Imakefile
@@ -4,7 +4,12 @@ Do not require libucb/SUNWscpu.
 
 --- Imakefile.orig	1994-05-19 02:01:00.000000000 +0000
 +++ Imakefile
-@@ -8,7 +8,6 @@ XMLIB = -lXm
+@@ -4,11 +4,10 @@
+ 
+ XCOMM Imakefile,v 2.0 1994/05/19 02:01:00 dan Exp
+ 
+-XMLIB = -lXm
++XMLIB =	${MOTIFLIB} -lm
  XCOMM
  XCOMM for Dell SVR4
  XCOMM
diff --git a/mgdiff/patches/patch-mgdiff.c b/mgdiff/patches/patch-mgdiff.c
index 2ad5db900f..a35e48298b 100644
--- a/mgdiff/patches/patch-mgdiff.c
+++ b/mgdiff/patches/patch-mgdiff.c
@@ -4,6 +4,51 @@ 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 
+ /* ARGSUSED */
+ static void file_cb (Widget w, XtPointer closure, XtPointer call_data)
+ {
+-    switch ((int) closure) {
++    switch ((uintptr_t) closure) {
+     case 0:			/* open */
+ 	toggle_open_sensitive (False);
+ 	set_cursor (toplevel);
+@@ -560,7 +560,7 @@ static void file_cb (Widget w, XtPointer
+ /* ARGSUSED */
+ static void view_cb (Widget w, XtPointer closure, XtPointer call_data)
+ {
+-    switch ((int) closure) {
++    switch ((uintptr_t) closure) {
+     case 0:			/* previous */
+ 	prev_diff (NULL, NULL, NULL);
+ 	break;
+@@ -582,7 +582,7 @@ static void view_cb (Widget w, XtPointer
+ /* ARGSUSED */
+ static void select_cb (Widget w, XtPointer closure, XtPointer call_data)
+ {
+-    switch ((int) closure) {
++    switch ((uintptr_t) closure) {
+     case 0:			/* left */
+ 	select_all (LEFT);
+ 	break;
+@@ -604,7 +604,7 @@ static void select_cb (Widget w, XtPoint
+ /* ARGSUSED */
+ static void options_cb (Widget w, XtPointer closure, XtPointer call_data)
+ {
+-    switch ((int) closure) {
++    switch ((uintptr_t) closure) {
+     case 0:			/* toggle overview area */
+ 	overview_flag = !overview_flag;
+ 	if (overview_flag) {
+@@ -660,7 +660,7 @@ static void options_cb (Widget w, XtPoin
+ /* ARGSUSED */
+ static void helpmenu_cb (Widget w, XtPointer closure, XtPointer call_data)
+ {
+-    switch ((int) closure) {
++    switch ((uintptr_t) closure) {
+     case 0:			/* version */
+ 	show_version (toplevel);
+ 	break;
 @@ -1110,7 +1110,9 @@ int main (int argc, char *argv[])
  	 */
      case 3:


Home | Main Index | Thread Index | Old Index