return COLORS_ON;
}
-color_mode_t color_mode() {
+color_mode_t color_mode(void) {
if (__color_mode == COLORS_UNKNOWN) {
__color_mode = detect_color_mode();
}
return 0;
}
-int cli_term_is_interactive() {
+int cli_term_is_interactive(void) {
return isatty(STDIN_FILENO) && isatty(STDOUT_FILENO) && isatty(STDERR_FILENO);
}
return 0;
}
-PAKFIRE_EXPORT const char** pakfire_supported_arches() {
+PAKFIRE_EXPORT const char** pakfire_supported_arches(void) {
static const char* supported_arches[] = {
// x86_64
PAKFIRE_ARCHES[0].name,
return 0;
}
-PAKFIRE_EXPORT const char* pakfire_arch_native() {
+PAKFIRE_EXPORT const char* pakfire_arch_native(void) {
struct utsname buf;
static __thread const char* arch_native = NULL;
return str;
}
-const char* pakfire_hostname() {
+const char* pakfire_hostname(void) {
static __thread char hostname[256];
int r = gethostname(hostname, sizeof(hostname));
return 0;
}
-char* pakfire_generate_uuid() {
+char* pakfire_generate_uuid(void) {
uuid_t uuid;
// Generate a new random value