[dwm] dmenu - simplification of cistrstr and kpress

2008-06-26 Thread Premysl Hruby
Hi, it also defines feature macro _BSD_SOURCE, so usleep and strdup is declared. patch attached. -Ph -- Premysl Anydot Hruby, http://www.redrum.cz/ diff -r 0088cc3243e3 config.mk --- a/config.mk Sat Jun 21 16:43:12 2008 +0100 +++ b/config.mk Wed Jun 25 23:09:40 2008 +0200 @@ -19,7 +19,7 @@

Re: [dwm] dmenu - simplification of cistrstr and kpress

2008-06-26 Thread Sander van Dijk
On 6/26/08, Premysl Hruby [EMAIL PROTECTED] wrote: Hi, it also defines feature macro _BSD_SOURCE, so usleep and strdup is declared. patch attached. return (char *)1;? cistrstr(s, sub) is supposed to return a pointer to the first occurence of sub in s, or NULL if there is none; not some

Re: [dwm] dmenu - simplification of cistrstr and kpress

2008-06-26 Thread Premysl Hruby
On (26/06/08 16:33), Sander van Dijk wrote: To: dynamic window manager dwm@suckless.org From: Sander van Dijk [EMAIL PROTECTED] Subject: Re: [dwm] dmenu - simplification of cistrstr and kpress Reply-To: dynamic window manager dwm@suckless.org List-Id: dynamic window manager dwm.suckless.org

Re: [dwm] dmenu - simplification of cistrstr and kpress

2008-06-26 Thread Marc Andre Tanner
Premysl Hruby wrote: patch attached. return (char *)1;? cistrstr(s, sub) is supposed to return a pointer to the first occurence of sub in s, or NULL if there is none; not some fixed pointer to memory that's probably not even allocated to the process. Greetings, Sander. Yes, that's true,