Permalink
Browse files

Add const qualifiers for struct _owl_keypress_specialmap *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
1 parent 8742840 commit 369a7f021f4a1d9570fedee37f7af45eb10d62b8 @andersk andersk committed Jul 29, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 keypress.c
View
@@ -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;

0 comments on commit 369a7f0

Please sign in to comment.