diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-11-06 08:55:52 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-06 08:55:52 -0500 | 
| commit | 52e6d0f495023c0aa939bf6b2170ca5ea853202b (patch) | |
| tree | 897a87316c280b6824892368662afcb848de1cf6 /include | |
| parent | 6db1b15b5c62d6fb52825c1d833ac8dfa9a49fbb (diff) | |
| parent | 46ae10e55603b8852612ebe12c7636c2b358bdd6 (diff) | |
| download | stasis-52e6d0f495023c0aa939bf6b2170ca5ea853202b.tar.gz | |
Merge pull request #67 from jhunkeler/safety-and-convenience
Safety and convenience
Diffstat (limited to 'include')
| -rw-r--r-- | include/core.h | 2 | ||||
| -rw-r--r-- | include/delivery.h | 3 | 
2 files changed, 4 insertions, 1 deletions
| diff --git a/include/core.h b/include/core.h index b0a1a11..b8b047f 100644 --- a/include/core.h +++ b/include/core.h @@ -12,7 +12,7 @@  #include <sys/statvfs.h>  #define SYSERROR(MSG, ...) do { \ -    fprintf(stderr, "%s:%s:%d:%s - ", path_basename(__FILE__), __FUNCTION__, __LINE__, strerror(errno) ? "info" : strerror(errno)); \ +    fprintf(stderr, "%s:%s:%d:%s - ", path_basename(__FILE__), __FUNCTION__, __LINE__, (errno > 0) ? strerror(errno) : "info"); \      fprintf(stderr, MSG LINE_SEP, __VA_ARGS__); \  } while (0)  #define STASIS_BUFSIZ 8192 diff --git a/include/delivery.h b/include/delivery.h index 345cd13..2ab25d1 100644 --- a/include/delivery.h +++ b/include/delivery.h @@ -277,6 +277,8 @@ char *delivery_get_release_header(struct Delivery *ctx);   * Finalizes a delivery artifact for distribution   * @param ctx poitner to Delivery context   * @param filename path to delivery artifact (Conda YAML file) + * @param stage DELIVERY_REWRITE_SPEC_STAGE_1 - Replacements for build + * @param stage DELIVERY_REWRITE_SPEC_STAGE_2 - Replacements for export   */  void delivery_rewrite_spec(struct Delivery *ctx, char *filename, unsigned stage); @@ -298,6 +300,7 @@ int delivery_copy_conda_artifacts(struct Delivery *ctx);  /**   * Retrieve Conda installer + * @param ctx pointer to Delivery context   * @param installer_url URL to installation script   */  int delivery_get_conda_installer(struct Delivery *ctx, char *installer_url); | 
