[hackers] [libdraw] cleaned up || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Fri, 2 Jul 2010 02:44:13 +0000 (UTC)

changeset: 2:11c543acbeac
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Fri Jul 02 03:44:03 2010 +0100
files: draw.h drawtext.c initfont.c textnw.c
description:
cleaned up

diff -r 9d7b9be90615 -r 11c543acbeac draw.h
--- a/draw.h Wed Jun 30 01:36:14 2010 +0100
+++ b/draw.h Fri Jul 02 03:44:03 2010 +0100
@@ -30,7 +30,7 @@
 unsigned long getcolor(DC *dc, const char *colstr);
 void initfont(DC *dc, const char *fontstr);
 void setupdraw(DC *dc, Window w);
-int textnw(DC *dc, const char *text, unsigned int len);
+int textnw(DC *dc, const char *text, size_t len);
 int textw(DC *dc, const char *text);
 
 /* variables */
diff -r 9d7b9be90615 -r 11c543acbeac drawtext.c
--- a/drawtext.c Wed Jun 30 01:36:14 2010 +0100
+++ b/drawtext.c Fri Jul 02 03:44:03 2010 +0100
@@ -3,7 +3,7 @@
 #include <X11/Xlib.h>
 #include <draw.h>
 
-#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
 
 void
 drawtext(DC *dc, const char *text, unsigned long col[ColLast], Bool invert) {
diff -r 9d7b9be90615 -r 11c543acbeac initfont.c
--- a/initfont.c Wed Jun 30 01:36:14 2010 +0100
+++ b/initfont.c Fri Jul 02 03:44:03 2010 +0100
@@ -2,7 +2,7 @@
 #include <X11/Xlib.h>
 #include <draw.h>
 
-#define MAX(a, b) ((a) > (b) ? (a) : (b))
+#define MAX(a, b) ((a) > (b) ? (a) : (b))
 
 void
 initfont(DC *dc, const char *fontstr) {
diff -r 9d7b9be90615 -r 11c543acbeac textnw.c
--- a/textnw.c Wed Jun 30 01:36:14 2010 +0100
+++ b/textnw.c Fri Jul 02 03:44:03 2010 +0100
@@ -3,7 +3,7 @@
 #include <draw.h>
 
 int
-textnw(DC *dc, const char *text, unsigned int len) {
+textnw(DC *dc, const char *text, size_t len) {
         XRectangle r;
 
         if(dc->font.set) {
Received on Fri Jul 02 2010 - 04:44:13 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 02 2010 - 04:48:04 CEST