SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
22
x11/blackbox/patches/patch-src_ScreenResource_cc
Normal file
22
x11/blackbox/patches/patch-src_ScreenResource_cc
Normal file
|
@ -0,0 +1,22 @@
|
|||
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) {
|
Loading…
Add table
Add a link
Reference in a new issue