diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-30 15:38:01 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-30 15:38:01 +0100 |
commit | eb49f6926581f9f9d7e6d9853ad41533fd779c07 (patch) | |
tree | 9a1ce45b04477a2c19e366c3cea9b14ff6129da4 /arch.c | |
parent | f38d0c991bcae3a894f3fc0b562f954e8e4ca2b6 (diff) | |
download | pacredir-eb49f6926581f9f9d7e6d9853ad41533fd779c07.tar.gz pacredir-eb49f6926581f9f9d7e6d9853ad41533fd779c07.tar.zst |
use a little helper to determine architecture
Architecture reported by `uname -a` and used by pacman are not
neccessarily the same, so use a little helper.
Diffstat (limited to 'arch.c')
-rw-r--r-- | arch.c | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +/* + * (C) 2013 by Christian Hesse <mail@eworm.de> + * + * This software may be used and distributed according to the terms + * of the GNU General Public License, incorporated herein by reference. + */ + +#include <stdio.h> +#include <stdlib.h> + +#include "config.h" + +/*** main ***/ +int main(int argc, char ** argv) { + /* just print the architecture */ + puts(ARCH); + + return EXIT_SUCCESS; +} + +// vim: set syntax=c: |