diff options
author | Kevin McCarthy <kevin@8t8.us> | 2018-12-31 16:06:53 -0800 |
---|---|---|
committer | Kevin McCarthy <kevin@8t8.us> | 2018-12-31 16:06:53 -0800 |
commit | 443295ee65c3ebc5085fcab3cc9d533b0fac4f0f (patch) | |
tree | dc425cf8028e3b78c635148bfc0a905b1e800327 /hash.c | |
parent | 1c59c27129b45b9f2cfd630428f57c643276b906 (diff) |
Remove trailing whitespace.
The result of
find . -name "*.[ch]" -exec emacs -batch {} \
--eval="(progn (delete-trailing-whitespace) (and (buffer-modified-p) (save-buffer)))" \;
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -5,16 +5,16 @@ * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - */ + */ #if HAVE_CONFIG_H # include "config.h" @@ -120,7 +120,7 @@ HASH *int_hash_create (int nelem, int flags) /* table hash table to update * key key to hash on * data data to associate with `key' - * allow_dup if nonzero, duplicate keys are allowed in the table + * allow_dup if nonzero, duplicate keys are allowed in the table */ static int union_hash_insert (HASH * table, union hash_key key, void *data) { @@ -289,7 +289,7 @@ void int_hash_delete (HASH *table, unsigned int intkey, const void *data, } /* ptr pointer to the hash table to be freed - * destroy() function to call to free the ->data member (optional) + * destroy() function to call to free the ->data member (optional) */ void hash_destroy (HASH **ptr, void (*destroy) (void *)) { @@ -337,10 +337,9 @@ struct hash_elem *hash_walk(const HASH *table, struct hash_walk_state *state) return state->last; } state->index++; - } + } state->index = 0; state->last = NULL; return NULL; } - |