Changeset 34120f10 in mainline for common/str_error.c


Ignore:
Timestamp:
2023-10-27T19:38:31Z (20 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, topic/msim-upgrade, topic/simplify-dev-export
Children:
63ed840
Parents:
c89ae25 (diff), 694ca3d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge code deduplication work

TL;DR: Added directory /common, which now contains the sole existing
copy of ADT, printf_core, and a few other pieces. Should make changes
to any of those less of a headache.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • common/str_error.c

    rc89ae25 r34120f10  
    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.