diff options
author | lme <lme@FreeBSD.org> | 2012-06-02 02:52:46 +0800 |
---|---|---|
committer | lme <lme@FreeBSD.org> | 2012-06-02 02:52:46 +0800 |
commit | 43186fe9ef282fbd3edcf88978135f27865e5356 (patch) | |
tree | 6e4e060582e9b48405ee57ded7904dde22ed58dc /x11/bbrun/files | |
parent | b4dd9bdbbdedc3055b1096a4188b891ee548d947 (diff) | |
download | freebsd-ports-gnome-43186fe9ef282fbd3edcf88978135f27865e5356.tar.gz freebsd-ports-gnome-43186fe9ef282fbd3edcf88978135f27865e5356.tar.zst freebsd-ports-gnome-43186fe9ef282fbd3edcf88978135f27865e5356.zip |
- Fix build with clang
- While here, fix a segfault [1]
- Bump PORTREVISION
Fixed by: ed [1]
Diffstat (limited to 'x11/bbrun/files')
-rw-r--r-- | x11/bbrun/files/patch-Makefile | 6 | ||||
-rw-r--r-- | x11/bbrun/files/patch-bbrun.c | 37 |
2 files changed, 36 insertions, 7 deletions
diff --git a/x11/bbrun/files/patch-Makefile b/x11/bbrun/files/patch-Makefile index 7040172a6f27..7144020704a9 100644 --- a/x11/bbrun/files/patch-Makefile +++ b/x11/bbrun/files/patch-Makefile @@ -1,5 +1,5 @@ ---- Makefile.orig Wed Feb 11 13:57:17 2004 -+++ Makefile Wed Aug 11 03:14:43 2004 +--- Makefile.orig 2004-02-11 05:57:17.000000000 +0100 ++++ Makefile 2012-05-30 22:23:41.000000000 +0200 @@ -1,7 +1,6 @@ -CC = gcc -LIBDIR = -L/usr/lib -L/usr/X11R6/lib @@ -11,7 +11,7 @@ OBJS = bbrun.o \ ../wmgeneral/wmgeneral.o \ -@@ -11,7 +10,7 @@ +@@ -11,7 +10,7 @@ OBJS = bbrun.o \ all: bbrun .c.o: diff --git a/x11/bbrun/files/patch-bbrun.c b/x11/bbrun/files/patch-bbrun.c index 376c2989112b..87760e8469ae 100644 --- a/x11/bbrun/files/patch-bbrun.c +++ b/x11/bbrun/files/patch-bbrun.c @@ -1,5 +1,5 @@ ---- bbrun.c.orig Sat Jul 20 13:24:53 2002 -+++ bbrun.c Sat Jul 20 20:31:49 2002 +--- bbrun.c.orig 2004-02-13 01:24:59.000000000 +0100 ++++ bbrun.c 2012-06-01 20:42:51.000000000 +0200 @@ -3,7 +3,11 @@ #include <string.h> #include <getopt.h> @@ -17,7 +17,36 @@ #define ADVANCED_WINDOW_COLS 10 -#define u32 __u32 -+#define u32 u_int32_t ++#define u32 uintptr_t #define __DEBUG__ 0 - #define VERSION "1.4" + #define VERSION "1.6" +@@ -38,8 +42,8 @@ char historyFilename[MAXPATHLEN + 1]; + + // TOC = Table Of Contents, it is a dynamically allocated array of pointers to dynamically + // allocated history items. +-u32 *histTOC; // Always keep track of the beginning, this one is NEVER incremented. +-u32 *histTOC2; // We increment this one for each item ++u32 *histTOC = NULL; // Always keep track of the beginning, this one is NEVER incremented. ++u32 *histTOC2 = NULL; // We increment this one for each item + + void parseArguments(int, char **); + void execDialogInformation(); +@@ -197,7 +201,7 @@ void readHistory(void) { + + item = malloc(strlen(buf)); + strncpy(item, buf, strlen(buf)); +- item[strlen(buf)- 1] = 0x0; // Remove the newline char ++ item[strlen(buf)- 1] = '\0'; // Remove the newline char + + *histTOC2 = (u32) item; + } else { +@@ -322,7 +326,7 @@ void writeHistory() + // Event handler for Ok and Cancel buttons + void callback (GtkWidget * widget, gpointer data) + { +- if ((char *) data == "ok") ++ if ((strcmp(data, "ok")) == 0) + execDialogInformation(); + + gtk_main_quit(); |