View | Details | Raw Unified | Return to bug 164049 | Differences between
and this patch

Collapse All | Expand All

(-)usr.bin/getconf/getconf.c (-1 / +4 lines)
Lines 98-104 Link Here
98
	if (argv[optind + 1] == NULL) { /* confstr or sysconf */
98
	if (argv[optind + 1] == NULL) { /* confstr or sysconf */
99
		if ((valid = find_limit(name, &limitval)) != 0) {
99
		if ((valid = find_limit(name, &limitval)) != 0) {
100
			if (valid > 0)
100
			if (valid > 0)
101
				printf("%" PRIdMAX "\n", limitval);
101
				if((long long)limitval == -1)
102
					printf("%llu\n", limitval);
103
				else
104
					printf("%lld\n", limitval);
102
			else
105
			else
103
				printf("undefined\n");
106
				printf("undefined\n");
104
107
(-)usr.bin/getconf/getconf.h (-1 lines)
Lines 31-37 Link Here
31
31
32
#ifdef STABLE
32
#ifdef STABLE
33
typedef long long intmax_t;
33
typedef long long intmax_t;
34
#define	PRIdMAX	"lld"
35
#else
34
#else
36
#include <inttypes.h>
35
#include <inttypes.h>
37
#endif
36
#endif

Return to bug 164049