~ruther/guix-local

5363abb776e71de10545ac96112ff6e5cd4c1559 — Ludovic Courtès 12 years ago a1c39ed
daemon: Make argp usage compatible with libc on GNU/Hurd.

* nix/nix-daemon/guix-daemon.cc (parse_opt): Cast return value to
  `error_t' for the sake of GNU/Hurd.
  Reported by Matthew Lien <bluet@bluet.org> at
  <http://lists.gnu.org/archive/html/bug-guix/2013-07/msg00002.html>.
1 files changed, 2 insertions(+), 2 deletions(-)

M nix/nix-daemon/guix-daemon.cc
M nix/nix-daemon/guix-daemon.cc => nix/nix-daemon/guix-daemon.cc +2 -2
@@ 171,10 171,10 @@ parse_opt (int key, char *arg, struct argp_state *state)
      settings.thisSystem = arg;
      break;
    default:
      return ARGP_ERR_UNKNOWN;
      return (error_t) ARGP_ERR_UNKNOWN;
    }

  return 0;
  return (error_t) 0;
}

/* Argument parsing.  */