ソースを参照

Add reference marker to EXIT STATUS section

Tatsuhiro Tsujikawa 12 年 前
コミット
93db904e48
2 ファイル変更3 行追加2 行削除
  1. 1 0
      doc/manual-src/en/aria2c.rst
  2. 2 2
      src/includes/aria2/aria2.h

+ 1 - 0
doc/manual-src/en/aria2c.rst

@@ -1500,6 +1500,7 @@ Let's see an example of how arguments are passed to command:
   $ aria2c --on-download-complete hook.sh http://example.org/file.iso
   Called with [1] [1] [/path/to/file.iso]
 
+.. _exit-status:
 
 EXIT STATUS
 -----------

+ 2 - 2
src/includes/aria2/aria2.h

@@ -213,7 +213,7 @@ Session* sessionNew(const KeyVals& options, const SessionConfig& config);
  * Performs post-download action, including saving sessions etc and
  * destroys the |session| object, releasing the allocated resources
  * for it. This function returns the last error code and it is the
- * equivalent to the exit status of :manpage:`aria2c(1)`.
+ * equivalent to the :ref:`exit-status` of :manpage:`aria2c(1)`.
  */
 int sessionFinal(Session* session);
 
@@ -802,7 +802,7 @@ public:
   virtual int getConnections() = 0;
   /**
    * Returns the last error code occurred in this download. The error
-   * codes are defined in EXIT STATUS section of
+   * codes are defined in :ref:`exit-status` section of
    * :manpage:`aria2c(1)`. This value has its meaning only for
    * stopped/completed downloads.
    */