DBG("put_subbuf");
- channel_and_cpu = strdup_malloc(nth_token(recvbuf, 1));
+ channel_and_cpu = strdup(nth_token(recvbuf, 1));
if(channel_and_cpu == NULL) {
ERR("cannot parse channel");
retval = -1;
goto end;
}
- consumed_old_str = strdup_malloc(nth_token(recvbuf, 2));
+ consumed_old_str = strdup(nth_token(recvbuf, 2));
if(consumed_old_str == NULL) {
ERR("cannot parse consumed_old");
retval = -1;
return retval;
}
-char *strdup_malloc(const char *s)
-{
- char *retval;
-
- if(s == NULL)
- return NULL;
-
- retval = (char *) malloc(strlen(s)+1);
-
- strcpy(retval, s);
-
- return retval;
-}
-
static int signal_process(pid_t pid)
{
return 0;
int (*cb)(char *msg, struct ustcomm_source *src);
};
-extern char *strdup_malloc(const char *s);
-
//int send_message_pid(pid_t pid, const char *msg, char **reply);
extern int ustcomm_request_consumer(pid_t pid, const char *channel);