Christian Göttsche c99d8d0a08 Avoid comparisons of different signs
Comparisons if different signedness can result in unexpected results.
Add casts to ensure operants are of the same type.

    gettime.c: In function 'gettime':
    gettime.c:58:26: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 'time_t' {aka 'long int'} [-Wsign-compare]
       58 |         } else if (epoch > fallback) {
          |                          ^

Cast to time_t, since epoch is less than ULONG_MAX at this point.

    idmapping.c: In function 'write_mapping':
    idmapping.c:202:48: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare]
      202 |                 if ((written <= 0) || (written >= (bufsize - (pos - buf)))) {
          |                                                ^~

    newgidmap.c: In function ‘main’:
    newgidmap.c:178:40: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
      178 |         if ((written <= 0) || (written >= sizeof(proc_dir_name))) {
          |                                        ^~
    newuidmap.c: In function ‘main’:
    newuidmap.c:107:40: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
      107 |         if ((written <= 0) || (written >= sizeof(proc_dir_name))) {
          |                                        ^~
2023-01-25 12:31:17 +01:00
..
2022-12-22 11:43:29 +01:00
2021-12-23 19:36:50 -06:00
2022-12-05 10:47:19 +01:00
2022-12-22 11:43:29 +01:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2022-09-02 20:27:14 -05:00
2021-12-23 19:36:50 -06:00
2022-08-17 12:34:01 -05:00
2021-12-23 19:36:50 -06:00
2023-01-25 12:31:17 +01:00
2021-12-23 19:36:50 -06:00
2023-01-25 12:31:17 +01:00
2022-12-22 10:31:43 +01:00
2022-12-22 10:31:43 +01:00
2022-12-22 11:43:29 +01:00
2022-12-22 11:43:29 +01:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2023-01-25 12:31:17 +01:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2022-12-22 11:43:29 +01:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-12-15 16:22:05 -06:00
2021-12-23 19:36:50 -06:00
2022-08-06 11:27:56 -05:00
2021-12-23 19:36:50 -06:00
2022-12-22 11:43:29 +01:00
2022-12-22 11:43:29 +01:00
2022-01-03 15:09:17 +01:00
2022-12-22 11:43:29 +01:00
2022-12-15 16:22:05 -06:00
2022-12-22 11:43:29 +01:00
2022-08-17 12:34:01 -05:00
2022-12-15 16:22:05 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2021-12-23 19:36:50 -06:00
2022-12-22 11:43:29 +01:00
2022-12-22 10:31:43 +01:00
2022-12-22 18:03:39 -06:00
2021-12-23 19:36:50 -06:00
2022-12-15 16:22:05 -06:00
2022-12-15 16:22:05 -06:00
2022-12-15 16:22:05 -06:00
2022-12-15 16:22:05 -06:00
2021-12-23 19:36:50 -06:00
2022-03-18 20:24:10 -05:00
2021-12-23 19:36:50 -06:00