Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33378 Details for
Bug 54087
hashit-0.9.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hashit-0.9.patch
hashit-0.9.patch (text/plain), 1.31 KB, created by
Henrik Holst
on 2004-06-16 07:51:36 UTC
(
hide
)
Description:
hashit-0.9.patch
Filename:
MIME Type:
Creator:
Henrik Holst
Created:
2004-06-16 07:51:36 UTC
Size:
1.31 KB
patch
obsolete
>--- hashit-0.9/lib/hashit.c.old 2004-06-16 14:10:25.677228154 +0200 >+++ hashit-0.9/lib/hashit.c 2004-06-16 14:08:41.734474793 +0200 >@@ -162,6 +162,7 @@ > { errno=ENOMEM; free(htable); return NULL;} > > /* And create structs for each hash table type */ >+ > switch(flags) { > case CHAIN_H: > htable->h_ops=&ch_ops; >@@ -446,7 +447,7 @@ > void **keys; > uint32_t kidx; > >- keys=malloc(htable->nelems*sizeof(void *)); >+ keys=malloc((htable->nelems+1)*sizeof(void *)); > if (!keys) { > errno=ENOMEM; > return NULL; >@@ -454,7 +455,7 @@ > kidx=0; > > for (idx=0; idx < htable->tsize; idx++) { >- >+ > cursor=htable->cm.chtable[idx]; > while (cursor!=NULL) { > //SAY("Element %d in bucket %d, key %s value %s", kidx, idx, cursor->key, cursor->data); >@@ -463,9 +464,9 @@ > > cursor=cursor->next; > } >- keys[kidx]=NULL; > } >- >+ keys[kidx] = NULL; >+ > return keys; > } > >--- hashit-0.9/lib/hashit.h.old 2004-06-16 14:10:33.299184018 +0200 >+++ hashit-0.9/lib/hashit.h 2004-04-07 15:11:58.000000000 +0200 >@@ -9,6 +9,10 @@ > #include <stdlib.h> > #include <stdint.h> > >+#ifdef __cplusplus >+extern "C" { >+#endif >+ > struct shash_t; > typedef struct shash_t *hash_t; > >@@ -23,4 +27,7 @@ > size_t hashit_tablesize(hash_t); > size_t hashit_size(hash_t); > >+#ifdef __cplusplus >+} >+#endif > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 54087
:
33377
| 33378 |
33415
|
33416
|
34561