aboutsummaryrefslogtreecommitdiffstats
path: root/calmwm.h
diff options
context:
space:
mode:
authorokan2015-01-19 14:54:16 +0000
committerokan2015-01-19 14:54:16 +0000
commit69c7524909cec83591a6cea56722753922d9999a (patch)
tree72877cdf61c2c8dd2e5e35e0909cb9058c225ca0 /calmwm.h
parent526655bfc9928c3519a08eba2fbeb5806ae387df (diff)
downloadcwm-69c7524909cec83591a6cea56722753922d9999a.tar.gz
Switch to limits.h; replace MAXPATHLEN and MAXHOSTNAMELEN with PATH_MAX
and HOST_NAME_MAX+1, respectively. ok doug@
Diffstat (limited to 'calmwm.h')
-rw-r--r--calmwm.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/calmwm.h b/calmwm.h
index 67b336c..955d9fc 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.283 2014/10/08 12:48:51 okan Exp $
+ * $OpenBSD: calmwm.h,v 1.284 2015/01/19 14:54:16 okan Exp $
*/
#ifndef _CALMWM_H_
@@ -260,7 +260,7 @@ TAILQ_HEAD(mousebinding_q, binding);
struct cmd {
TAILQ_ENTRY(cmd) entry;
char *name;
- char path[MAXPATHLEN];
+ char path[PATH_MAX];
};
TAILQ_HEAD(cmd_q, cmd);
@@ -292,7 +292,7 @@ struct conf {
int snapdist;
struct gap gap;
char *color[CWM_COLOR_NITEMS];
- char known_hosts[MAXPATHLEN];
+ char known_hosts[PATH_MAX];
#define CONF_FONT "sans-serif:pixelsize=14:bold"
char *font;
Cursor cursor[CF_NITEMS];