diff options
author | Haru <haru@dotalux.com> | 2014-07-10 15:38:09 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2014-07-11 08:42:50 +0200 |
commit | 8b4f35532c8fd7c7f0939756923fdaf14ee39531 (patch) | |
tree | 2a5a69e909538ecc81cdcd37b0dd74e0a046e021 /src/common/ers.h | |
parent | 3f3f2e7ec09087b57148a0fb229de26293c5a462 (diff) | |
download | hercules-8b4f35532c8fd7c7f0939756923fdaf14ee39531.tar.gz hercules-8b4f35532c8fd7c7f0939756923fdaf14ee39531.tar.bz2 hercules-8b4f35532c8fd7c7f0939756923fdaf14ee39531.tar.xz hercules-8b4f35532c8fd7c7f0939756923fdaf14ee39531.zip |
Removed unsafe pointer typedefs
- If a variable doesn't look like a pointer... Maybe it might be a
pointer after all. Please, give me back my '*' sign.
- See CERT DCL05-C.
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/ers.h')
-rw-r--r-- | src/common/ers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/ers.h b/src/common/ers.h index f32680339..e11f7f37e 100644 --- a/src/common/ers.h +++ b/src/common/ers.h @@ -126,7 +126,7 @@ typedef struct eri { /* */ void (*chunk_size) (struct eri *self, unsigned int new_size); -} *ERS; +} ERS; #ifdef DISABLE_ERS // Use memory manager to allocate/free and disable other interface functions @@ -158,7 +158,7 @@ typedef struct eri { * @param The requested size of the entry in bytes * @return Interface of the object */ -ERS ers_new(uint32 size, char *name, enum ERSOptions options); +ERS *ers_new(uint32 size, char *name, enum ERSOptions options); /** * Print a report about the current state of the Entry Reusage System. |