~registry/kmod/master

« back to all changes in this revision

Viewing changes to shared/util.c

  • Committer: Lucas De Marchi
  • Author(s): Emil Velikov
  • Date: 2023-02-22 00:35:42 UTC
  • Revision ID: git-v1:06e6f167c211106212290aa7980880f972d71ba2
shared: annotate local API as static

None of the API is used outside of the compilation unit.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
354
354
/* path handling functions                                                  */
355
355
/* ************************************************************************ */
356
356
 
357
 
bool path_is_absolute(const char *p)
 
357
static bool path_is_absolute(const char *p)
358
358
{
359
359
        assert(p != NULL);
360
360
 
460
460
        return mkdir_p(path, end - path, mode);
461
461
}
462
462
 
463
 
unsigned long long ts_usec(const struct timespec *ts)
 
463
static unsigned long long ts_usec(const struct timespec *ts)
464
464
{
465
465
        return (unsigned long long) ts->tv_sec * USEC_PER_SEC +
466
466
               (unsigned long long) ts->tv_nsec / NSEC_PER_USEC;
467
467
}
468
468
 
469
 
unsigned long long ts_msec(const struct timespec *ts)
 
469
static unsigned long long ts_msec(const struct timespec *ts)
470
470
{
471
471
        return (unsigned long long) ts->tv_sec * MSEC_PER_SEC +
472
472
               (unsigned long long) ts->tv_nsec / NSEC_PER_MSEC;