Skip to content

Commit

Permalink
getopt: Change version
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Venries committed Nov 21, 2016
1 parent 085f230 commit 2d3bb31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PearlFan

[![Build Status](https://travis-ci.org/Ventto/pearlfan.svg?branch=master)](https://travis-ci.org/Ventto/pearlfan)
[![License](https://img.shields.io/badge/license-GPLv3-blue.svg?style=flat)](https://github.com/Ventto/pearlfan/blob/master/LICENSE)
[![Status](https://img.shields.io/badge/status-Release_v1.0-blue.svg?style=flat)](https://github.com/Ventto/pearlfan/releases)
[![Status](https://img.shields.io/badge/status-Release_v1.1-blue.svg?style=flat)](https://github.com/Ventto/pearlfan/releases)

*PearlFan provides a GNU/Linux Kernel driver and a libusb application for the "[PEARL.fr](https://www.pearl.fr/article/PX5939/ventilateur-usb-programmable-avec-message-defilant
)" USB LED fan.*
Expand Down
4 changes: 3 additions & 1 deletion src/utils/optutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include "optutils.h"
#include "ioutils.h"

#define VERSION "1.1"

static int no_conjunction(char opt_a, char opt_b)
{
fprintf(stderr, "Option -%c cannot be used in conjuntion with %c.\n\n",
Expand Down Expand Up @@ -68,7 +70,7 @@ static void usage(void)

static void version(void)
{
fprintf(stdout, "Pearlfan 1.0\n\n");
fprintf(stdout, "Pearlfan %s\n\n", VERSION);
fprintf(stdout, "Copyright (C) 2016 Thomas \"Ventto\" Venries.\n\n");
fprintf(stdout, "License GPLv3+: GNU GPL version 3 or later "),
fprintf(stdout, "<http://gnu.org/licenses/gpl.html>.\n");
Expand Down

0 comments on commit 2d3bb31

Please sign in to comment.