git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3035c74
)
always include port when creating url
author
Michal Voců
<michal@ruk.cuni.cz>
Mon, 27 Aug 2012 11:50:01 +0000
(11:50 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Mon, 27 Aug 2012 11:50:01 +0000
(11:50 +0000)
org.glite.jobid.api-c/src/cjobid.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.jobid.api-c/src/cjobid.c
b/org.glite.jobid.api-c/src/cjobid.c
index
5ef0715
..
552db94
100644
(file)
--- a/
org.glite.jobid.api-c/src/cjobid.c
+++ b/
org.glite.jobid.api-c/src/cjobid.c
@@
-239,18
+239,14
@@
void glite_jobid_free(glite_jobid_t job)
char* glite_jobid_unparse(glite_jobid_const_t jobid)
{
- char *out
, port[40]
;
+ char *out;
if (!jobid)
return NULL;
- if (jobid->BSport)
- sprintf(port,":%d",jobid->BSport);
- else
- *port = 0;
-
- asprintf(&out, GLITE_JOBID_PROTO_PREFIX"%s%s/%s%s%s",
- jobid->BShost,port,
+ asprintf(&out, GLITE_JOBID_PROTO_PREFIX"%s:%d/%s%s%s",
+ jobid->BShost,
+ jobid->BSport? jobid->BSport : GLITE_JOBID_DEFAULT_PORT,
jobid->id,
(jobid->info ? "?" : ""),
(jobid->info ? jobid->info : ""));