summaryrefslogtreecommitdiff
path: root/sysutils/wmcube-gdk/files/patch-wmcube.c
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2018-12-21 13:19:02 +0000
committerRene Ladan <rene@FreeBSD.org>2018-12-21 13:19:02 +0000
commite5aaf05932b27919e9237fe077f607ac0f0d8e91 (patch)
tree094c99154e533e4d74dec6f4cc4c2f945ffea1b1 /sysutils/wmcube-gdk/files/patch-wmcube.c
parentwww/node8: fix build on powerpc64 (diff)
Remove expired ports:
2018-12-19 net/py-libstorj: Broken for more than 6 months 2018-12-20 net/xferstats: Uses obsolete glib12 2018-12-20 net/wmlj: Uses obsolete glib12 2018-12-20 net/ipsorc: Uses obsolete glib12 2018-12-20 net/bsdproxy: Uses obsolete glib12 2018-12-20 net/gini: Uses obsolete glib12 2018-12-21 net/netatalk: Outdated branch of netatalk; use net/netatalk3 instead 2018-12-20 net/nocatsplash: Uses obsolete glib12 2018-12-20 net/jags: Uses obsolete glib12 2018-12-19 net/scribe: Broken for more than 6 months 2018-12-20 net/libnetdude: Uses obsolete glib12 2018-12-20 net/nepim: Uses obsolete glib12 2018-12-20 emulators/generator: Uses obsolete glib12 2018-12-19 emulators/py-nova: Broken for more than 6 months 2018-12-20 emulators/generator-cbiere: Uses obsolete glib12 2018-12-20 x11-toolkits/p5-Gtk-Perl: Uses obsolete glib12 2018-12-20 deskutils/ithought: Uses obsolete glib12 2018-12-20 deskutils/gaddr: Uses obsolete glib12 2018-12-20 x11-fonts/gfe: Uses obsolete glib12 2018-12-20 graphics/graphopt: Uses obsolete glib12 2018-12-19 graphics/fotoxx: Broken for more than 6 months 2018-12-20 graphics/gcolor: Uses obsolete glib12 2018-12-20 graphics/danpei: Uses obsolete glib12 2018-12-20 graphics/chbg: Uses obsolete glib12 2018-12-20 mail/pop3lite: Uses obsolete glib12 2018-12-20 mail/gbuffy: Uses obsolete glib12 2018-12-20 security/gtk-knocker: Uses obsolete glib12 2018-12-20 security/gpasman: Uses obsolete glib12 2018-12-20 security/crank: Uses obsolete glib12 2018-12-20 security/stegdetect: Uses obsolete glib12 2018-12-20 devel/liboop: Uses obsolete glib12 2018-12-20 devel/gcvs: Uses obsolete glib12 2018-12-20 print/lpr-wrapper: Uses obsolete glib12 2018-12-20 print/libppd: Uses obsolete glib12 2018-12-20 net-p2p/napshare: Uses obsolete glib12 2018-12-20 net-p2p/gnewtellium: Uses obsolete glib12 2018-12-20 editors/gnotepad+: Uses obsolete glib12 2018-12-20 editors/manedit: Uses obsolete glib12 2018-12-20 misc/gtkfind: Uses obsolete glib12 2018-12-20 games/mindguard: Uses obsolete glib12 2018-12-20 games/xbattle: Uses obsolete glib12 2018-12-20 games/xbill: Uses obsolete glib12 2018-12-20 games/corewars: Uses obsolete glib12 2018-12-20 games/dopewars: Uses obsolete glib12 2018-12-20 games/garith: Uses obsolete glib12 2018-12-20 games/wmquake: Uses obsolete glib12 2018-12-20 games/znibbles: Uses obsolete glib12 2018-12-20 games/xpuyopuyo: Uses obsolete glib12 2018-12-19 games/kajongg: Broken for more than 6 months 2018-12-20 games/netspades: Uses obsolete glib12 2018-12-20 games/gtklife: Uses obsolete glib12 2018-12-20 biology/xmolwt: Uses obsolete glib12 2018-12-20 x11-clocks/wmclockmon: Uses obsolete glib12 2018-12-20 x11-clocks/asclock-gtk: Uses obsolete glib12 2018-12-20 net-im/gale: Uses obsolete glib12 2018-12-20 audio/xmms-ahx: Uses obsolete glib12 2018-12-20 audio/xmms-curses: Uses obsolete glib12 2018-12-20 audio/scrobbler: Uses obsolete glib12 2018-12-20 audio/xmms-nsf: Uses obsolete glib12 2018-12-20 audio/xmms-nas: Uses obsolete glib12 2018-12-20 audio/xmms-gbsplay: Uses obsolete glib12 2018-12-20 audio/xmms-wavpack: Uses obsolete glib12 2018-12-20 audio/xmms-shn: Uses obsolete glib12 2018-12-20 audio/xmms-volnorm: Uses obsolete glib12 2018-12-20 audio/xmms-faad: Uses obsolete glib12 2018-12-20 audio/xmms-scrobbler: Uses obsolete glib12 2018-12-20 audio/mcplay: Uses obsolete glib12 2018-12-20 audio/gmixer: Uses obsolete glib12 2018-12-20 audio/soundtracker: Uses obsolete glib12 2018-12-20 audio/xmms-sapplug: Uses obsolete glib12 2018-12-20 audio/rio500: Uses obsolete glib12 2018-12-20 audio/xmmsctrl: Uses obsolete glib12 2018-12-20 audio/xmms-xf86audio: Uses obsolete glib12 2018-12-20 audio/xmms-mailnotify: Uses obsolete glib12 2018-12-20 audio/xmms-sexypsf: Uses obsolete glib12 2018-12-20 audio/gqmpeg: Uses obsolete glib12 2018-12-20 audio/wmalbum: Uses obsolete glib12 2018-12-20 audio/xmms-xymms: Uses obsolete glib12 2018-12-20 audio/xmms-flac: Uses obsolete glib12 2018-12-20 audio/xmms-festalon: Uses obsolete glib12 2018-12-20 audio/gkrellmms2: Uses obsolete glib12 2018-12-20 audio/xmms-ladspa: Uses obsolete glib12 2018-12-19 math/octave-forge-engine: Broken for more than 6 months 2018-12-20 math/surf: Uses obsolete glib12 2018-12-19 math/msieve: Broken for more than 6 months 2018-12-19 math/octave-forge-fl-core: Broken for more than 6 months 2018-12-19 math/octave-forge-pdb: Broken for more than 6 months 2018-12-19 math/octave-forge-audio: Broken for more than 6 months 2018-12-20 math/geg: Uses obsolete glib12 2018-12-20 math/grpn: Uses obsolete glib12 2018-12-20 x11/gdkxft: Uses obsolete glib12 2018-12-20 x11/gtk-theme-switch: Uses obsolete glib12 2018-12-19 x11/xpyb: Broken for more than 6 months 2018-12-20 x11/gtk-launch: Uses obsolete glib12 2018-12-19 x11/xpra: Broken for more than 6 months 2018-12-20 palm/pilrc: Uses obsolete glib12 2018-12-20 x11-fm/mtoolsfm: Uses obsolete glib12 2018-12-20 german/steak: Uses obsolete glib12 2018-12-20 multimedia/xmms-skins-huge: Uses obsolete glib12 2018-12-20 multimedia/openquicktime: Uses obsolete glib12 2018-12-20 multimedia/xmms-skins: Uses obsolete glib12 2018-12-20 multimedia/oqtplayer: Uses obsolete glib12 2018-12-20 multimedia/oqtencoder: Uses obsolete glib12 2018-12-20 multimedia/p5-Video-OpenQuicktime: Uses obsolete glib12 2018-12-20 multimedia/xtheater: Uses obsolete glib12 2018-12-20 multimedia/dv2jpg: Uses obsolete glib12 2018-12-20 comms/hf: Uses obsolete glib12 2018-12-20 comms/gscmxx: Uses obsolete glib12 2018-12-20 sysutils/wmcube-gdk: Uses obsolete glib12 2018-12-20 sysutils/gcombust: Uses obsolete glib12 2018-12-20 sysutils/xlogmaster: Uses obsolete glib12 2018-12-20 sysutils/mount.app: Uses obsolete glib12 2018-12-20 sysutils/bbapm: Uses obsolete glib12
Diffstat (limited to 'sysutils/wmcube-gdk/files/patch-wmcube.c')
-rw-r--r--sysutils/wmcube-gdk/files/patch-wmcube.c176
1 files changed, 0 insertions, 176 deletions
diff --git a/sysutils/wmcube-gdk/files/patch-wmcube.c b/sysutils/wmcube-gdk/files/patch-wmcube.c
deleted file mode 100644
index bd4db830c835..000000000000
--- a/sysutils/wmcube-gdk/files/patch-wmcube.c
+++ /dev/null
@@ -1,176 +0,0 @@
---- wmcube.c.orig 2001-12-18 07:06:21.000000000 -0200
-+++ wmcube.c 2010-01-20 13:19:32.000000000 -0200
-@@ -50,7 +50,6 @@
- #include <sys/ioctl.h>
- #include <sys/socket.h>
-
--#include <utmp.h>
- #include <dirent.h>
-
- #include <gdk/gdk.h>
-@@ -174,6 +173,7 @@
- #ifdef FREEBSD
- static kvm_t *kd;
- static struct nlist nlst[] = { {"_cp_time"}, {0} };
-+static int cp_time_mib[2];
- #endif
-
- void prep_digits(void)
-@@ -226,7 +226,7 @@
- XWMHints wmhints;
- /* for mask */
- GdkBitmap *mask;
-- unsigned char mask_data[8 * 64];
-+ gchar mask_data[8 * 64];
- int i;
- GdkColor bright;
- /* for that stupid shadow line */
-@@ -778,7 +778,7 @@
- newx -= CHAR_WIDTH;
- }
-
-- sprintf(buf, "%02i%%", num);
-+ snprintf(buf, 5, "%02i%%", num);
- for (i = 0; (c = buf[i]); i++) {
- if (c == '%')
- copy_xpm_area(60, 0, 7, 9, newx, y);
-@@ -899,7 +899,8 @@
-
- while ((i > -1) && (temparr[i] > key)) {
- temparr[i + 1] = temparr[i];
-- zorder[i + 1] = zorder[i--];
-+ zorder[i + 1] = zorder[i];
-+ i--;
- }
-
- zorder[i + 1] = k;
-@@ -1250,7 +1251,7 @@
- exit(0);
- }
-
-- fscanf(fp, "%s", tmp);
-+ fscanf(fp, "%63s", tmp);
-
- if (strcmp(tmp, "WMCUBE_COORDINATES") != 0) {
- printf
-@@ -1259,7 +1260,7 @@
- exit(0);
- }
-
-- fscanf(fp, "%s", tmp);
-+ fscanf(fp, "%63s", tmp);
- counter = atoi(tmp);
-
- while ((strcmp(tmp, "WMCUBE_LINES") != 0)
-@@ -1280,7 +1281,7 @@
- fclose(fp);
- exit(0);
- }
-- fscanf(fp, "%s", tmp);
-+ fscanf(fp, "%63s", tmp);
-
- if (feof(fp)) {
- printf
-@@ -1297,23 +1298,23 @@
-
- planesORlines = 0;
- while (1) {
--
- cline = (int *) realloc(cline, (i + 2) * sizeof(int));
- mem_alloc_error(cline);
-- fscanf(fp, "%d %d", &cline[i++], &cline[i++]);
-- /* printf("\n%d %d",cline[i-2],cline[i-1]); */
-+ fscanf(fp, "%d %d", &cline[i], &cline[i+1]);
-+ /* printf("\n%d %d",cline[i],cline[i+1]); */
- if (feof(fp))
- break;
-
-- if (cline[i - 2] > nofcoords || cline[i - 1] > nofcoords) {
-+ if (cline[i] > nofcoords || cline[i+1] > nofcoords) {
- printf("\nError in objectfile (WMCUBE_LINES section):\n"
- "coordinates %d or/and %d doesnt exist\n\n",
-- cline[i - 2], cline[i - 1]);
-+ cline[i], cline[i+1]);
- fclose(fp);
- exit(0);
- }
-+ i = i + 2;
- }
-- noflines = i - 2;
-+ noflines = i;
- } else if (strcmp(tmp, "WMCUBE_PLANES") == 0) {
-
- planesORlines = 1;
-@@ -1398,7 +1399,7 @@
- char cpuid[6];
- char check_cpu[6];
-
-- sprintf(check_cpu, "cpu%d", which_cpu);
-+ snprintf(check_cpu, 6, "cpu%d", which_cpu);
-
- if ((fp = fopen("/proc/stat", "rb")) == NULL) {
- perror("/proc/stat required for this system");
-@@ -1409,7 +1410,7 @@
- return 0;
-
- for (i = -2; i < which_cpu; i++) {
-- fscanf(fp, "%s", cpuid);
-+ fscanf(fp, "%5s", cpuid);
- }
-
- if (strcmp(check_cpu, cpuid) != 0) {
-@@ -1431,7 +1432,7 @@
- fp = fopen("/proc/stat", "rt");
-
- for (i = -2; i < which_cpu; i++) {
-- fscanf(fp, "%s %d %d %d %d", cpuid, &cpu, &nice, &system, &idle);
-+ fscanf(fp, "%5s %d %d %d %d", cpuid, &cpu, &nice, &system, &idle);
- }
-
- fclose(fp);
-@@ -1582,18 +1583,23 @@
- #include <nlist.h>
- #include <fcntl.h>
- #include <sys/dkstat.h>
-+#include <sys/sysctl.h>
-
- int init_calc_cpu()
- {
-+ size_t len = 2;
-+ if (sysctlnametomib("kern.cp_time", cp_time_mib, &len) < 0) {
-+ printf("\nWarning: unable to sysctl kern.cp_time\n\n");
-
-- if ((kd = kvm_open(NULL, NULL, NULL, O_RDONLY, "kvm_open")) == NULL) {
-- printf("\nError: unable to open kvm\n\n");
-- exit(0);
-- }
-- kvm_nlist(kd, nlst);
-- if (nlst[0].n_type == 0) {
-- printf("\nError: unable to get nlist\n\n");
-- exit(1);
-+ if ((kd = kvm_open(NULL, NULL, NULL, O_RDONLY, "kvm_open")) == NULL) {
-+ printf("\nError: unable to open kvm\n\n");
-+ exit(0);
-+ }
-+ kvm_nlist(kd, nlst);
-+ if (nlst[0].n_type == 0) {
-+ printf("\nError: unable to get nlist\n\n");
-+ exit(1);
-+ }
- }
-
- /* drop setgid & setuid (hi GOBBLES, who the fuck are you? */
-@@ -1615,6 +1621,13 @@
- int cpu, nice, system, idle;
- unsigned long int cpu_time[CPUSTATES];
-
-+ if (cp_time_mib[0] != 0) {
-+ size_t cpu_time_len = sizeof (cpu_time);
-+ if (sysctl(cp_time_mib, 2, cpu_time, &cpu_time_len, NULL, 0) < 0) {
-+ printf("\nError sysctl\n\n");
-+ exit(0);
-+ }
-+ } else
- if (kvm_read(kd, nlst[0].n_value, &cpu_time, sizeof(cpu_time))
- != sizeof(cpu_time)) {
- printf("\nError reading kvm\n\n");