Changeset 84a1a54 in mainline for uspace/srv/hid/rfb/main.c
- Timestamp:
- 2018-01-04T20:47:53Z (6 years ago)
- Children:
- facacc71
- Parents:
- cde999a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/rfb/main.c
rcde999a r84a1a54 220 220 if (rc != EOK) { 221 221 printf("%s: Unable to register server.\n", NAME); 222 return rc;222 return EXIT_RC(rc); 223 223 } 224 224 225 225 char *service_name; 226 rc = asprintf(&service_name, "rfb/%s", rfb_name); 227 if (rc < 0) { 226 if (asprintf(&service_name, "rfb/%s", rfb_name) < 0) { 228 227 printf(NAME ": Unable to create service name\n"); 229 return rc;228 return EXIT_RC(ENOMEM); 230 229 } 231 230 … … 235 234 if (rc != EOK) { 236 235 printf(NAME ": Unable to register service %s.\n", service_name); 237 return rc;236 return EXIT_RC(rc); 238 237 } 239 238
Note:
See TracChangeset
for help on using the changeset viewer.