Skip to content

Commit

Permalink
Merge pull request #16 from rhymeswithmogul/15-compilation-on-armhf-f…
Browse files Browse the repository at this point in the history
…ails-due-to-improper-cast

Fix compilation error on armhf with `printf()` and `time_t`
  • Loading branch information
rhymeswithmogul authored Nov 3, 2024
2 parents 5de3adf + 101ffe3 commit 73d925b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log for `aprs-weather-submit`

## Version 1.8.1
<time datetime="2024-11-03">November 3, 2024</time>
Fixed a bug where compilation would fail on `armhf` platforms due to an improper cast when `printf()`-ing a `time_t`. It's a `long long int` on that platform, while `printf()` was expecting a `long int` instead.

## Version 1.8
<time datetime="2024-10-31T22:35:00-04:00">October 31, 2024</time>
* Converted the APRS-IS socket from blocking to non-blocking, with a default timeout of 15 seconds before the connection is aborted. Thanks to [DL9SEC](https://www.dl9sec.de) for pointing this out.
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dnl
dnl You should have received a copy of the GNU Affero General Public License
dnl along with this program. If not, see <http://gnu.org/licenses/agpl-3.0.html>.

AC_INIT([aprs-weather-submit], [1.8], [https://github.com/rhymeswithmogul/aprs-weather-submit/])
AC_INIT([aprs-weather-submit], [1.8.1], [https://github.com/rhymeswithmogul/aprs-weather-submit/])
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror])
AC_PREREQ
AC_PROG_INSTALL
Expand Down
2 changes: 1 addition & 1 deletion src/aprs-is.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ sendPacket (const char* const restrict server,
char* timeoutText = malloc(BUFSIZE);
if (timeout > 0)
{
snprintf(timeoutText, BUFSIZE - 1, " (timeout %ld seconds)", timeout);
snprintf(timeoutText, BUFSIZE - 1, " (timeout %jd seconds)", (intmax_t)timeout);
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion src/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ with this program. If not, see <https://www.gnu.org/licenses/agpl-3.0.html>.
#endif

#ifndef VERSION
#define VERSION "1.8"
#define VERSION "1.8.1"
#endif

/* We don't support networking on DOS at this time.
Expand Down

0 comments on commit 73d925b

Please sign in to comment.