projects
/
cascardo
/
libreceita.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Um pequeno programa de teste para obter alguns campos de uma declaração.
[cascardo/libreceita.git]
/
pmhash.c
diff --git
a/pmhash.c
b/pmhash.c
index
d228856
..
ca9cfca
100644
(file)
--- a/
pmhash.c
+++ b/
pmhash.c
@@
-44,7
+44,7
@@
struct pmhash * pmhash_new(void)
int pmhash_add(struct pmhash **pmhash, char *key, void *val)
{
int pmhash_add(struct pmhash **pmhash, char *key, void *val)
{
- int i;
+
unsigned
int i;
struct pmhash *hash = *pmhash;
i = 0;
repeat:
struct pmhash *hash = *pmhash;
i = 0;
repeat:
@@
-74,7
+74,7
@@
out:
void * pmhash_get(struct pmhash *pmhash, char *key)
{
void * pmhash_get(struct pmhash *pmhash, char *key)
{
- int i;
+
unsigned
int i;
for (i = 0; i < pmhash->len; i++) {
if (pmhash->items[i].key == NULL)
return NULL;
for (i = 0; i < pmhash->len; i++) {
if (pmhash->items[i].key == NULL)
return NULL;
@@
-86,7
+86,7
@@
void * pmhash_get(struct pmhash *pmhash, char *key)
void pmhash_del(struct pmhash *pmhash)
{
void pmhash_del(struct pmhash *pmhash)
{
- int i;
+
unsigned
int i;
for (i = 0; i < pmhash->len; i++) {
if (pmhash->items[i].key == NULL)
break;
for (i = 0; i < pmhash->len; i++) {
if (pmhash->items[i].key == NULL)
break;