You are viewing a plain text version of this content. The canonical link for it is here.
Posted to proton@qpid.apache.org by "Cliff Jansen (JIRA)" <ji...@apache.org> on 2013/01/28 22:03:13 UTC

[jira] [Created] (PROTON-206) Use const char* variables for string literals

Cliff Jansen created PROTON-206:
-----------------------------------

             Summary: Use const char* variables for string literals
                 Key: PROTON-206
                 URL: https://issues.apache.org/jira/browse/PROTON-206
             Project: Qpid Proton
          Issue Type: Improvement
          Components: proton-c
    Affects Versions: 0.3
         Environment: all

            Reporter: Cliff Jansen
            Priority: Minor
             Fix For: 0.4


proton sometimes uses declarations of the form

  char *host = "0.0.0.0";

These should be hunted down and replaced with a const declaration.  Where these variables are passed as arguments to other functions, those should be additionally changed to const where appropriate.  This occurs in

  examples/messenger/c/send.c
  examples/messenger/c/recv.c
  src/messenger.c
  src/util.c
  src/proton.c


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira