summaryrefslogtreecommitdiff
path: root/app/cwm/calmwm.c
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2008-05-19 18:53:10 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2008-05-19 18:53:10 +0000
commitc029aaaf43f6d9e973b669a9e00834e327f4672f (patch)
tree01753f1088ce45097d89f8d4900a494150d19f07 /app/cwm/calmwm.c
parent180ab48b217df4d99b0c912e293bb919f027a5b3 (diff)
General cleanup.
ok okan@.
Diffstat (limited to 'app/cwm/calmwm.c')
-rw-r--r--app/cwm/calmwm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/cwm/calmwm.c b/app/cwm/calmwm.c
index d4e20efbe..8eb2ad6a4 100644
--- a/app/cwm/calmwm.c
+++ b/app/cwm/calmwm.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.
*
- * $Id: calmwm.c,v 1.17 2008/05/06 15:12:04 tobias Exp $
+ * $Id: calmwm.c,v 1.18 2008/05/19 18:53:09 oga Exp $
*/
#include "headers.h"
@@ -52,14 +52,14 @@ int
main(int argc, char **argv)
{
int ch;
- const char *conffile = NULL;
+ const char *conf_file = NULL;
char *display_name = NULL;
while ((ch = getopt(argc, argv, "c:d:")) != -1) {
switch (ch) {
case 'c':
- conffile = optarg;
+ conf_file = optarg;
break;
case 'd':
display_name = optarg;
@@ -82,7 +82,7 @@ main(int argc, char **argv)
Starting = 1;
bzero(&Conf, sizeof(Conf));
- conf_setup(&Conf, conffile);
+ conf_setup(&Conf, conf_file);
client_setup();
x_setup(display_name);
Starting = 0;
@@ -238,7 +238,7 @@ x_setupscreen(struct screen_ctx *sc, u_int which)
LeaveWindowMask|ColormapChangeMask|ButtonMask;
XChangeWindowAttributes(X_Dpy, sc->rootwin,
- /* CWCursor| */CWEventMask, &rootattr);
+ CWEventMask, &rootattr);
XSync(X_Dpy, False);
@@ -257,10 +257,10 @@ x_screenname(int which)
dstr = xstrdup(DisplayString(X_Dpy));
- if ((cp = rindex(dstr, ':')) == NULL)
+ if ((cp = strrchr(dstr, ':')) == NULL)
return (NULL);
- if ((cp = index(cp, '.')) != NULL)
+ if ((cp = strchr(cp, '.')) != NULL)
*cp = '\0';
snlen = strlen(dstr) + 3; /* string, dot, number, null */