25 lines
668 B
Plaintext
25 lines
668 B
Plaintext
$OpenBSD: patch-src_ScreenResource_cc,v 1.2 2018/12/01 22:41:39 naddy Exp $
|
|
|
|
Fix for warning: deprecated conversion from string constant to 'char*'
|
|
|
|
Index: src/ScreenResource.cc
|
|
--- src/ScreenResource.cc.orig
|
|
+++ src/ScreenResource.cc
|
|
@@ -32,6 +32,7 @@
|
|
#include <Resource.hh>
|
|
|
|
#include <assert.h>
|
|
+#include <string.h>
|
|
|
|
|
|
static const int iconify_width = 9;
|
|
@@ -61,7 +62,7 @@ static const unsigned char close_bits[] =
|
|
|
|
void ScreenResource::save(bt::Resource& res, BScreen* screen) {
|
|
char rc_string[128];
|
|
- char *placement = (char *) 0;
|
|
+ const char *placement = NULL;
|
|
unsigned int number = screen->screenNumber();
|
|
|
|
switch (_slitOptions.placement) {
|