Re: [dev] [PATCH v2] Add compatibility for OpenBSD in tar

2013-07-20 Thread Roberto E. Vargas Caballero
On Sat, Jul 20, 2013 at 01:28:59AM -0400, Galos, David wrote: OpenBSD defines strlcpy function, and the declaration is a bit different of the static declartion found in tar.c. The duplication of symbol name with different type (one extern and other static, one returning int and the other

Re: [dev] [surf] Patch for high dpi screens

2013-07-20 Thread Anselm R Garbe
On 16 July 2013 10:42, Nick suckless-...@njw.me.uk wrote: The attached patch ensures surf adheres more closely to the CSS spec in making one px equal to 1/96 inch, regardless of the actual screen pixel density. This is a typical web-style cop-out for the fact that many stupid web designers

Re: [dev] [dwm] [patch] Fix warning about XKeycodeToKeysym

2013-07-20 Thread Anselm R Garbe
Hi Alexander, On 15 July 2013 17:11, Alexander Rødseth rods...@gmail.com wrote: I read the git log after having submitted the patch and I understand that this issue has been looked at and various solutions has been considered already. Hopefully there will be a good way to resolve this in the

Re: [dev] Re: [swerc][PATCH] bin/handlers: roll up repeated code; factorize out suffixes

2013-07-20 Thread Anselm R Garbe
Hi Strake, On 4 July 2013 04:36, Strake strake...@gmail.com wrote: Tested now. From 309ffdb318e67014b8565335cc1d95e4ff5d506c Mon Sep 17 00:00:00 2001 From: Strake strake...@gmail.com Date: Wed, 3 Jul 2013 07:26:16 -0500 Subject: [PATCH 1/2] bin/handlers: roll up repeated code Well I tried

Re: [dev] [libsl][patch] drw_rect()

2013-07-20 Thread Anselm R Garbe
Hi David, On 2 July 2013 03:24, David Dufberg Tøttrup da...@dufberg.se wrote: On Jun 28 2013, Anselm R Garbe wrote: On 28 June 2013 12:51, David Dufberg Tøttrup da...@dufberg.se wrote: Hi! I assume drw_rect()'s intended purpose isn't to only draw the small squares in the dwm bar. Patch

[dev] [sbase] Problem tar archiving the output file

2013-07-20 Thread Roberto E. Vargas Caballero
Hi, When tar has to archiving the same directory where the output file is located, (for example with something like tar cf f.tar .) it enters in a infinite loop in: @archive while((l = fread(b, 1, Blksiz, f)) 0) { if(l Blksiz) memset(b+l,

Re: [dev] [sbase] [patch] Use int instead of char for getc()

2013-07-20 Thread Galos, David
Good catch, applied.

Re: [dev] [sbase] [patch] Add sha256sum(1)

2013-07-20 Thread Szabolcs Nagy
* Galos, David galos...@students.rowan.edu [2013-07-20 00:50:25 -0400]: +/* + * public domain sha256 crypt implementation + * + * original sha crypt design: http://people.redhat.com/drepper/SHA-crypt.txt + * in this implementation at least 32bit int is assumed, + * key length is

Re: [dev] [sbase] Problem tar archiving the output file

2013-07-20 Thread Roberto E. Vargas Caballero
This patch fixes this issue using the inode number of the tar file. -- Roberto E. Vargas Caballero k...@shike2.com http://www.shike2.com From e5b989e7899c87f316597e6b8ed39adfa97959b2 Mon Sep 17 00:00:00 2001 From: Roberto E. Vargas Caballero k...@shike2.com Date:

Re: [dev] [sbase] Problem tar archiving the output file

2013-07-20 Thread Galos, David
This patch fixes this issue using the inode number of the tar file. I like this fix; it has been applied. Thank you for sending this as an attachment.

Re: [dev] [sbase] [patch] Add sha256sum(1)

2013-07-20 Thread Galos, David
/* public domain sha256 implementation based on fips180-3 */ you may add that it's from the crypt code of musl libc in case somebody wants to check upstream changes I have applied the patch, then moved that line to the top of the file, and removed the notice about the nonexistent crypt code.

Re: [dev] [PATCH] Add RGB color definition

2013-07-20 Thread Alexander Sedov
2013/7/19 Roberto E. Vargas Caballero k...@shike2.com: From: Roberto E. Vargas Caballero k...@shike2.com It is impossible allocate all the RGB colors using a static array, so it is necessary move DC.col into a pointer and use dinamic memory. Since the color definition is not used to much is

Re: [dev] [PATCH] Add RGB color definition

2013-07-20 Thread Roberto E. Vargas Caballero
I disapprove of this patch, since it does not work the way advertised. Particularly, added colors can be palette-swapped with another sequence. Also, replacing static memory with malloc() feels dirty. I don't see how you can swapped them, and I agree with you that the malloc can be a big

Re: [dev] [sbase] [patch] Add sha256sum(1)

2013-07-20 Thread sin
On Sat, Jul 20, 2013 at 01:25:09PM -0400, Galos, David wrote: /* public domain sha256 implementation based on fips180-3 */ you may add that it's from the crypt code of musl libc in case somebody wants to check upstream changes I have applied the patch, then moved that line to the top of

[dev] [PATCH v2 1/2] Add RGB color definition

2013-07-20 Thread Roberto E. Vargas Caballero
From: Roberto E. Vargas Caballero k...@shike2.com This patch uses the bit 24 in the color descriptor as an indicator of RGB color, so we can take the values and generating the XftColour directly in xdraws. --- st.c | 119 --- 1 file