aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2018-02-02 13:27:25 +0000
committerokan2018-02-02 13:27:25 +0000
commitf4c2ff2f29a17a5916e9bf642240abb5f4fc190a (patch)
tree7f5262cb2b9e2f06da679964554b40b8e0e4e2f6 /calmwm.h
parent0e4de00f0797b3ead070279aa9e6994cebfe6c25 (diff)
downloadcwm-f4c2ff2f29a17a5916e9bf642240abb5f4fc190a.tar.gz
Simplification; use asprintf where appropriate now.
Diffstat (limited to '')
-rw-r--r--calmwm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/calmwm.h b/calmwm.h
index 894f842..c9fd91d 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -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: calmwm.h,v 1.353 2018/02/01 15:17:51 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.354 2018/02/02 13:27:25 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -260,7 +260,7 @@ TAILQ_HEAD(mousebind_q, bind_ctx);
struct cmd_ctx {
TAILQ_ENTRY(cmd_ctx) entry;
char *name;
- char path[PATH_MAX];
+ char *path;
};
TAILQ_HEAD(cmd_q, cmd_ctx);
TAILQ_HEAD(wm_q, cmd_ctx);
@@ -298,13 +298,13 @@ struct conf {
int snapdist;
struct gap gap;
char *color[CWM_COLOR_NITEMS];
- char known_hosts[PATH_MAX];
char *font;
char *wmname;
Cursor cursor[CF_NITEMS];
int xrandr;
int xrandr_event_base;
char *homedir;
+ char *known_hosts;
char *wm_argv;
};
@@ -540,9 +540,9 @@ int conf_bind_mouse(struct conf *, const char *,
const char *);
void conf_clear(struct conf *);
void conf_client(struct client_ctx *);
-int conf_cmd_add(struct conf *, const char *,
+void conf_cmd_add(struct conf *, const char *,
const char *);
-int conf_wm_add(struct conf *, const char *,
+void conf_wm_add(struct conf *, const char *,
const char *);
void conf_cursor(struct conf *);
void conf_grab_kbd(Window);