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("%" PRIdMAX "\n", limitval);
103
				else
104
					printf("%" PRIuMAX "\n", limitval);
102
			else
105
			else
103
				printf("undefined\n");
106
				printf("undefined\n");
104
107
(-)usr.bin/getconf/getconf.h (+1 lines)
Lines 32-37 Link Here
32
#ifdef STABLE
32
#ifdef STABLE
33
typedef long long intmax_t;
33
typedef long long intmax_t;
34
#define	PRIdMAX	"lld"
34
#define	PRIdMAX	"lld"
35
#define	PRIuMAX	"llu"
35
#else
36
#else
36
#include <inttypes.h>
37
#include <inttypes.h>
37
#endif
38
#endif

Return to bug 164049