Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

NOIRLAB: minor libboot.a improvements #350

Merged
merged 4 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion unix/boot/bootlib/envinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ void
_envinit (void)
{
static int initialized = 0;
char osfn[SZ_PATHNAME+1], *hlib;
char osfn[SZ_PATHNAME+16], *hlib;
char irafarch[SZ_PATHNAME+1];


Expand Down
2 changes: 1 addition & 1 deletion unix/boot/bootlib/osstrupk.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ os_strupk (
*/
if (maxch) {
if (sizeof(char) != sizeof(XCHAR) || str != (char *)outstr) {
n = min (n, strlen(ip));
n = min ((size_t)n, strlen(ip));
op[n] = XEOS;

while (--n >= 0)
Expand Down
2 changes: 1 addition & 1 deletion unix/boot/bootlib/ossysfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ os_sysfile (
ip = ip_save;

/* Exit if the file exists. */
if (os_access (fname, 0, 0))
if (os_access (fname, 0, 0) == YES)
return (strlen (fname));
}
}
Expand Down
2 changes: 1 addition & 1 deletion unix/gdev/sgidev/sgi2uimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#define DECL_OBUF register char *op; char *np; char obuf[SZ_OBUF+1];
#define o_clear (op=obuf)
#define o_flush(o) fwrite(obuf,op-obuf,1,o)
#define putbyte(v) (*op++ = (v))
#define putbyte(v) (*op++ = (char)(v))
#define putword(v) ((*op++ = (v)/256), (*op++ = (v)%256))
#define setcount(b,v) ((np = obuf+b), (*np++ = (v)/256), (*np = (v)%256))
#define npoints ((op-obuf - SZ_HEAD)/4)
Expand Down
Loading