• M
    Fix const correctness · 607806f8
    Michal Privoznik 提交于
    In many places we define a variable as a 'const char *' when in fact
    we modify it just a few lines below. Or even free it. We should not do
    that.
    
    There's one exception though, in xenSessionFree() xenapi_utils.c. We
    are freeing the xen_session structure which is defined in
    xen/api/xen_common.h public header. The structure contains session_id
    which is type of 'const char *' when in fact it should have been just
    'char *'. So I'm leaving this unmodified, just noticing the fact in
    comment.
    Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
    607806f8
xenapi_utils.c 18.1 KB