Changeset 592 for trunk/src/sh_socket.c
- Timestamp:
- Oct 31, 2026, 7:16:07 PM (20 hours ago)
- File:
-
- 1 edited
-
trunk/src/sh_socket.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_socket.c
r583 r592 89 89 int sh_socket_store_uuid(const char * cmd) 90 90 { 91 char * p = sh_util_strdup(cmd); 92 char * q = strchr(cmd, ':'); 91 const char * q = strchr(cmd, ':'); 93 92 char entry[SH_BUFSIZE]; 94 93 SH_DELTA_DB db; 95 94 96 if (!q) { SH_FREE(p);return -1; }95 if (!q) { return -1; } 97 96 98 97 ++q; 99 98 100 if (0 != sh_uuid_check(q)) { SH_FREE(p);return -1; }99 if (0 != sh_uuid_check(q)) { return -1; } 101 100 102 101 db.count = 0; 103 102 db.last_time = (time_t) 0; 104 103 sl_strlcpy(db.uuid, q, SH_UUID_BUF); 105 SH_FREE(p);106 104 107 105 if (NULL != unparse_entry(&db, entry, sizeof(entry))) … … 495 493 { 496 494 #ifdef S_ISSOCK 497 if (S_ISSOCK (sbuf.st_mode)) 495 /* cppcheck-suppress syntaxError */ 496 if (S_ISSOCK(sbuf.st_mode)) 498 497 { 499 498 retval = retry_aud_unlink (FIL__, __LINE__, sh_sockname);
Note:
See TracChangeset
for help on using the changeset viewer.