Changeset fdfb24e in mainline for common/str_error.c


Ignore:
Timestamp:
2023-10-27T17:53:21Z (19 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
55c5cb05
Parents:
44e8541
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:38:24)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-27 17:53:21)
Message:

Deduplicate string related functions

File:
1 moved

Legend:

Unmodified
Added
Removed
  • common/str_error.c

    r44e8541 rfdfb24e  
    2828 */
    2929
     30#include <str_error.h>
     31
    3032#include <errno.h>
    31 #include <str.h>
     33#include <stddef.h>
     34
    3235
    3336/*
     
    6467        /*
    6568         * Just a dumb linear search.
    66          * There too few entries to warrant anything smarter.
     69         * There are too few entries to warrant anything smarter.
    6770         */
    6871
     
    8689        }
    8790
    88         return "(unknown)";
     91        return NULL;
    8992}
    9093
     
    97100        }
    98101
    99         return "Unknown error code";
     102        return NULL;
    100103}
Note: See TracChangeset for help on using the changeset viewer.