Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add const qualifiers for struct _owl_keypress_specialmap *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
commit 369a7f021f4a1d9570fedee37f7af45eb10d62b8 1 parent 8742840
@andersk andersk authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 keypress.c
View
6 keypress.c
@@ -2,7 +2,7 @@
#include <string.h>
#include "owl.h"
-static struct _owl_keypress_specialmap {
+static const struct _owl_keypress_specialmap {
int kj;
const char *ks;
} specialmap[] = {
@@ -132,7 +132,7 @@ static struct _owl_keypress_specialmap {
int owl_keypress_tostring(int j, int esc, char *buff, int bufflen)
{
char kb[64], kb2[2];
- struct _owl_keypress_specialmap *sm;
+ const struct _owl_keypress_specialmap *sm;
*kb = '\0';
for (sm = specialmap; sm->kj!=0; sm++) {
@@ -176,7 +176,7 @@ int owl_keypress_tostring(int j, int esc, char *buff, int bufflen)
/* returns ERR on failure, else a keycode */
int owl_keypress_fromstring(const char *kb)
{
- struct _owl_keypress_specialmap *sm;
+ const struct _owl_keypress_specialmap *sm;
int ismeta=0, isctrl=0;
int j = ERR;
Please sign in to comment.
Something went wrong with that request. Please try again.