diff options
author | Andrés G. Aragoneses <knocte@gmail.com> | 2015-03-31 02:35:21 +0200 |
---|---|---|
committer | Andrés G. Aragoneses <knocte@gmail.com> | 2015-06-17 13:22:34 +0200 |
commit | 524e42caee22313738733a3e4ee74acdb5e561b7 (patch) | |
tree | 4a688fd8439985eba810e870717360e77043d16d /src/util.h | |
parent | c56ec997b0faa2a762da836caefa67707d98d443 (diff) | |
download | libmtp-524e42caee22313738733a3e4ee74acdb5e561b7.tar.gz |
util: wrap unknown-device erroring in just one function
The way to error out about an unknown device was being
triplicated in the code.
This commit shouldn't bring any behaviour change, as it's
just refactoring.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -29,6 +29,7 @@ void data_dump_ascii (FILE *f, void *buf, uint32_t n, uint32_t dump_boundry); #ifndef HAVE_STRNDUP char *strndup (const char *s, size_t n); #endif +void device_unknown(const int dev_number, const int id_vendor, const int id_product); /** * Info macro |