diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-28 20:55:52 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-06-01 01:10:43 +0300 |
commit | c3cc06dd839c99cacb365eb95d5b0b413990c67b (patch) | |
tree | 0139b1ccf8b1e2ab003b2589a2fa77b5cc52eeb9 | |
parent | 96d1bce2ab9e3dea0c3899e81db0ef6b158e5615 (diff) | |
download | direvent-c3cc06dd839c99cacb365eb95d5b0b413990c67b.tar.gz direvent-c3cc06dd839c99cacb365eb95d5b0b413990c67b.tar.bz2 |
One more fix.
* dircond.c (trans_strtotok): 2nd arg is const
* dircond.h: Ditto.
-rw-r--r-- | dircond.c | 2 | ||||
-rw-r--r-- | dircond.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -169,7 +169,7 @@ mkfilename(const char *dir, const char *file) } int -trans_strtotok(struct transtab *tab, char *str, int *ret) +trans_strtotok(struct transtab *tab, const char *str, int *ret) { for (; tab->name; tab++) if (strcmp(tab->name, str) == 0) { @@ -119,7 +119,7 @@ extern event_mask sie_xlat[]; extern struct transtab sie_trans[]; extern struct transtab evsys_transtab[]; -int trans_strtotok(struct transtab *tab, char *str, int *ret); +int trans_strtotok(struct transtab *tab, const char *str, int *ret); char *trans_toktostr(struct transtab *tab, int tok); char *trans_tokfirst(struct transtab *tab, int tok, int *next); char *trans_toknext(struct transtab *tab, int tok, int *next); |