asterisk.c, manager.c: Increase buffer sizes to avoid truncation warnings.
config.c: Include header file for WIFEXITED/WEXITSTATUS macros.
res_timing_kqueue: Use more portable format specifier.
test_crypto: Use non-linux limits.h header file.
Resolves: #916
(cherry picked from commit
b8b21b3f00a8e0a46b547200581bccc1997a9df7)
if (ast_opt_console) {
/* Console stuff now... */
/* Register our quit function */
- char title[256];
+ char title[296];
char hostname[MAXHOSTNAMELEN] = "";
if (gethostname(hostname, sizeof(hostname) - 1)) {
#include <libgen.h>
#include <time.h>
#include <sys/stat.h>
+#include <sys/wait.h>
#include <math.h> /* HUGE_VAL */
#include <regex.h>
struct ast_manager_user *user = NULL;
struct ast_variable *var;
struct ast_flags config_flags = { (reload && !by_external_config) ? CONFIG_FLAG_FILEUNCHANGED : 0 };
- char a1[256];
+ char a1[337];
char a1_hash[256];
struct ast_sockaddr ami_desc_local_address_tmp;
struct ast_sockaddr amis_desc_local_address_tmp;
}
diff = ast_tvdiff_us(ast_tvnow(), start);
- ast_test_status_update(test, "diff is %llu\n", diff);
+ ast_test_status_update(test, "diff is %" PRIu64 "\n", diff);
} while (0);
kqueue_timer_close(kt);
return res;
#include <assert.h>
#include <sys/stat.h>
-#include <linux/limits.h>
+#include <limits.h>
#include <openssl/evp.h>
static const char *keypair1 = "rsa_key1";