diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-29 01:35:09 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2019-12-29 01:35:09 -0500 |
commit | 4595ada2f69b42670c85a63c7d2344af63f2afe7 (patch) | |
tree | 0d528d8177aceefcf74fb7306fc0fc7cc3c41ece /include/spm.h | |
parent | 8ae4f8f5985445b1ce3547975f407847c0fee0f7 (diff) | |
download | spmc-4595ada2f69b42670c85a63c7d2344af63f2afe7.tar.gz |
Minor fixes:
* size_t in place of int
* Moved some variables closer to their execution scope
* Add some error checks
Diffstat (limited to 'include/spm.h')
-rw-r--r-- | include/spm.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/spm.h b/include/spm.h index 02d0242..372cb20 100644 --- a/include/spm.h +++ b/include/spm.h @@ -9,6 +9,7 @@ #include <errno.h> #include <fts.h> #include <glob.h> +#include <math.h> #include <stdio.h> #include <stdlib.h> #include <limits.h> @@ -64,7 +65,7 @@ typedef struct { char **requirements; - int requirements_records; + size_t requirements_records; size_t size; char archive[PACKAGE_MEMBER_SIZE]; char name[PACKAGE_MEMBER_SIZE]; @@ -73,7 +74,7 @@ typedef struct { } ManifestPackage; typedef struct { - int records; + size_t records; ManifestPackage **packages; } Manifest; |