aboutsummaryrefslogtreecommitdiff
path: root/misc/wmwork/files
diff options
context:
space:
mode:
authorSoeren Straarup <xride@FreeBSD.org>2009-02-26 16:14:20 +0000
committerSoeren Straarup <xride@FreeBSD.org>2009-02-26 16:14:20 +0000
commitad24d9e621e873462a4f011fbaffcc742b6443a3 (patch)
treeb125c6acdf4c87538c207a0888ed3b34ff4345bb /misc/wmwork/files
parenteeb324c0040f5ccbf6657ee8d2c88cc5ad2b600c (diff)
downloadports-ad24d9e621e873462a4f011fbaffcc742b6443a3.tar.gz
ports-ad24d9e621e873462a4f011fbaffcc742b6443a3.zip
make it fetchable
noticed by: pointyhat (Pav)
Notes
Notes: svn path=/head/; revision=229092
Diffstat (limited to 'misc/wmwork/files')
-rw-r--r--misc/wmwork/files/patch-wmwork.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/misc/wmwork/files/patch-wmwork.c b/misc/wmwork/files/patch-wmwork.c
new file mode 100644
index 000000000000..3dbf7a64a142
--- /dev/null
+++ b/misc/wmwork/files/patch-wmwork.c
@@ -0,0 +1,23 @@
+--- wmwork.c.orig 2009-02-26 07:19:00.000000000 +0100
++++ wmwork.c 2009-02-26 07:22:35.000000000 +0100
+@@ -590,9 +590,9 @@
+ p = first;
+ do {
+ if (F == stderr)
+- fprintf(F, "%s: > %s:%li:%s\n", PACKAGE_NAME, p->name, p->time, p->comment ? p->comment : "");
++ fprintf(F, "%s: > %s:%u:%s\n", PACKAGE_NAME, p->name, p->time, p->comment ? p->comment : "");
+ else
+- fprintf(F, "%s:%li:%s\n", p->name, p->time, p->comment ? p->comment : "");
++ fprintf(F, "%s:%u:%s\n", p->name, p->time, p->comment ? p->comment : "");
+ p = p->next;
+ } while (p != first);
+
+@@ -614,7 +614,7 @@
+ if (sess_time == 0)
+ return 1;
+ strftime(tbuff, sizeof(tbuff), "%a, %d %b %Y %H:%M:%S %z", localtime(&now.tv_sec));
+- snprintf(rbuff, sizeof(rbuff), "%s %03li:%02li:%02li", tbuff, sess_time / 3600, sess_time / 60 % 60, sess_time % 60);
++ snprintf(rbuff, sizeof(rbuff), "%s %03i:%02i:%02i", tbuff, sess_time / 3600, sess_time / 60 % 60, sess_time % 60);
+
+ if ((fname = malloc(path_len)) == NULL) {
+ fprintf(stderr, "%s: cannot allocate memory for path variable\n", PACKAGE_NAME);