all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Vong <alexvong1995@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 2/2] guix-register: Fix '--version'.
Date: Wed, 24 Aug 2016 09:35:48 +0800	[thread overview]
Message-ID: <87bn0jx823.fsf@gmail.com> (raw)

[-- Attachment #1: 0002-guix-register-Fix-version.patch --]
[-- Type: text/x-diff, Size: 1655 bytes --]

From 66b7781dd5b88bfff465660e9ae02d86a1f4843f Mon Sep 17 00:00:00 2001
From: Alex Vong <alexvong1995@gmail.com>
Date: Wed, 24 Aug 2016 09:25:04 +0800
Subject: [PATCH 2/2] guix-register: Fix '--version'.

* nix/guix-register/guix-register.cc (argp_program_version): Assigning
  instead of declaring.
  (argp_program_bug_address): Likewise.
---
 nix/guix-register/guix-register.cc | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/nix/guix-register/guix-register.cc b/nix/guix-register/guix-register.cc
index 16dae62..849e640 100644
--- a/nix/guix-register/guix-register.cc
+++ b/nix/guix-register/guix-register.cc
@@ -2,6 +2,7 @@
    Copyright (C) 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
    Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012,
      2013 Eelco Dolstra <eelco.dolstra@logicblox.com>
+   Copyright (C) 2016 Alex Vong <alexvong1995@gmail.com>
 
    This file is part of GNU Guix.
 
@@ -44,10 +45,6 @@ static std::istream *input = &std::cin;
 \f
 /* Command-line options.  */
 
-const char *argp_program_version =
-  "guix-register (" PACKAGE_NAME ") " PACKAGE_VERSION;
-const char *argp_program_bug_address = PACKAGE_BUGREPORT;
-
 static char doc[] =
 "guix-register -- register a closure as valid in a store\
 \v\
@@ -230,6 +227,9 @@ main (int argc, char *argv[])
 
   try
     {
+      argp_program_version =
+        "guix-register (" PACKAGE_NAME ") " PACKAGE_VERSION;
+      argp_program_bug_address = PACKAGE_BUGREPORT;
       argp_parse (&argp, argc, argv, 0, 0, 0);
 
       /* Instantiate the store.  This creates any missing directories among
-- 
2.9.3

                 reply	other threads:[~2016-08-24  1:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bn0jx823.fsf@gmail.com \
    --to=alexvong1995@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.