Skip to content

Commit

Permalink
a few very minor cleanups
Browse files Browse the repository at this point in the history
src/cmd/INIT/mamake.c:
- Fix usage message.

src/lib/libast/include/stak.h:
- Since this header was restored for backward compat purposes only,
  typecast the four void* functions back to their old char* types.
  (re: a45a0eb)

src/lib/libast/man/sfio.3:
- Fix typo causing formatting error. (re: 086d504)
  • Loading branch information
McDutchie committed Aug 1, 2024
1 parent 30ca4b6 commit 6e810b2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Uppercase BUG_* IDs are shell bug IDs as used by the Modernish shell library.
- Fixed a bug where printf %T, after having printed the time in UTC once
with the TZ variable set to "UTC", would always print the time in UTC from
then on, even if the TZ variable was changed to another time zone.
Bug introduced in ksh 93t+ 2009-10-21.

2024-07-26:

Expand Down
8 changes: 4 additions & 4 deletions src/cmd/INIT/mamake.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,13 +331,13 @@ extern char **environ;
static void usage(void)
{
fprintf(stderr, "Usage: %s"
" [-iknFNV]"
" [-f Mamfile]"
" [-eiknFNVGS]"
" [-f file]"
" [-r pattern]"
" [-C directory]"
" [-D level]"
" [target ...]"
" [name=value ...]"
" [ target ... ]"
" [ name=value ... ]"
"\n", state.id);
exit(2);
}
Expand Down
8 changes: 4 additions & 4 deletions src/lib/libast/include/stak.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@
#define stakputc(c) sfputc(stkstd,(c))
#define stakwrite(b,n) sfwrite(stkstd,(b),(n))
#define stakputs(s) (sfputr(stkstd,(s),0),--stkstd->_next)
#define stakseek(n) stkseek(stkstd,n)
#define stakseek(n) ((char*)stkseek(stkstd,n))
#define stakcreate(n) stkopen(n)
#define stakinstall(s,f) stkinstall(s,f)
#define stakdelete(s) stkclose(s)
#define staklink(s) stklink(s)
#define stakalloc(n) stkalloc(stkstd,n)
#define stakalloc(n) ((char*)stkalloc(stkstd,n))
#define stakcopy(s) stkcopy(stkstd,s)
#define stakset(c,n) stkset(stkstd,c,n)
#define stakfreeze(n) stkfreeze(stkstd,n)
#define stakset(c,n) ((char*)stkset(stkstd,c,n))
#define stakfreeze(n) ((char*)stkfreeze(stkstd,n))

#endif
2 changes: 1 addition & 1 deletion src/lib/libast/man/sfio.3
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ On error, all three functions return a negative value which should be \f3-1\fP
or the value returned by the exception handler.
.Ss "STREAM CONTROL"
.Ss " int sfresize(Sfio_t* f, Sfoff_t size)"
This function resizes the stream \f3f\P so that its extent is \f3size\fP.
This function resizes the stream \f3f\fP so that its extent is \f3size\fP.
If the stream corresponds to a file, the file size is set to \f3size\fP
via the system call \f3ftruncate()\fP.
When a stream is made larger, the new data space is filled with zero's.
Expand Down

0 comments on commit 6e810b2

Please sign in to comment.