summaryrefslogtreecommitdiff
path: root/app/cwm/client.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-12-17 16:10:44 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-12-17 16:10:44 +0000
commit8710551cd749757455447a9e31fc91b6bf3c2d57 (patch)
treec961fd2168b1e31286adb8ddf9e6537907e53fa2 /app/cwm/client.c
parent6607b5d582214cfff74e2f83b584112c17932cd6 (diff)
replace with memset
Diffstat (limited to 'app/cwm/client.c')
-rw-r--r--app/cwm/client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index df01ce776..df25f72e7 100644
--- a/app/cwm/client.c
+++ b/app/cwm/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.164 2013/12/16 19:02:17 okan Exp $
+ * $OpenBSD: client.c,v 1.165 2013/12/17 16:10:43 okan Exp $
*/
#include <sys/param.h>
@@ -408,7 +408,7 @@ client_config(struct client_ctx *cc)
{
XConfigureEvent cn;
- bzero(&cn, sizeof(cn));
+ (void)memset(&cn, 0, sizeof(cn));
cn.type = ConfigureNotify;
cn.event = cc->win;
cn.window = cc->win;
@@ -547,7 +547,7 @@ client_msg(struct client_ctx *cc, Atom proto, Time ts)
{
XClientMessageEvent cm;
- bzero(&cm, sizeof(cm));
+ (void)memset(&cm, 0, sizeof(cm));
cm.type = ClientMessage;
cm.window = cc->win;
cm.message_type = cwmh[WM_PROTOCOLS];