summaryrefslogtreecommitdiff
path: root/curvetun/nacl_path.sh
blob: 9f492ba012286c4f3c71d713e5b0dfa52aaf2830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
# -*- coding: utf-8 -*-
#
# nacl_path.sh -- NaCl path export script
#
# Copyright (C) 2009-2011 Emmanuel Roullit <emmanuel@netsniff-ng.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.

nacl_include_path="$1"
nacl_lib_path="$2"

if test -z $nacl_include_path || test -z $nacl_lib_path; then
	echo "Please input the path where NaCl is like the following:"
	echo "./$0.sh <include_path> <lib_path>"
	exit 1
fi

echo "export NACL_INC_DIR=$nacl_include_path" >> ~/.bashrc
echo "export NACL_LIB_DIR=$nacl_lib_path" >> ~/.bashrc
ocumentation/misc-devices?id=8f507c8b0fa5d679e2957aad0e5ecd47675fca9a'>patch) tree427024c2176d6a4ab06b5178e1874dc24b0c6b74 /Documentation/misc-devices parentd66435cc7da95964cb386674bd82ec12ca66320a (diff)
HID: hidraw: switch to using memdup_user
Instead of open-coding memory allocation and copying form user memory sequence let's use memdup_user(). Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'Documentation/misc-devices')