SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,29 @@
Index: rocs/impl/str.c
--- rocs/impl/str.c.orig
+++ rocs/impl/str.c
@@ -21,6 +21,7 @@
#include <string.h>
#include <stdarg.h>
#include <time.h>
+#include <ctype.h>
#include "rocs/public/str.h"
#include "rocs/public/mem.h"
@@ -520,7 +521,7 @@ static char* _createStampNoDotsID( RocsMemID id ) {
}
-static char* _isoDate( long tt ) {
+static char* _isoDate( time_t tt ) {
struct tm* t = NULL;
/* Alloc a string for the stamp; caller should freeup! */
@@ -536,7 +537,7 @@ static char* _isoDate( long tt ) {
return s;
}
-static char* _isoTime( long tt ) {
+static char* _isoTime( time_t tt ) {
struct tm* t = NULL;
/* Alloc a string for the stamp; caller should freeup! */